PIC - Introduction PIC16F877
Transcript of PIC - Introduction PIC16F877
![Page 1: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/1.jpg)
1
EECE416: Microcomputer Fundamentals and Design
PIC - Introduction
PIC16F877
Dr. Charles J. Kim
Howard University
![Page 2: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/2.jpg)
2
Peripheral Interface Controller
PIC: Peripheral Interface ControllerMicrochip Technology (www.microchip.com)Harvard Architecture
![Page 3: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/3.jpg)
3
PIC- continued
Origin: Harvard Architecture for DAPRA ProjectBeaten by Princeton (Single memory)Picked by Signetics 8x300PIC for General InstrumentsCompensation for poor I/OGI spun off into Arizona Microchip Technology (1985)- Microchip Technology
![Page 4: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/4.jpg)
4
PIC -continuedA Large Register Set: 368 Bytes + WRISC Architecture--pipelining35 fixed length (14-bit) single-cycle instructions
![Page 5: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/5.jpg)
5
PIC-continued8-bit machineOperating Speed: Up to 20 MHz8K 14-bit Words FLASH Memory (for Program)368 Bytes RAM (for Data)256 Bytes EEPROM (for Data)Power Saving Mode
![Page 6: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/6.jpg)
6
PIC -continued
Low-power consumption:< 2 mA typical @ 5V, 4 MHz20 mA typical @ 3V, 32 kHz< 1 mA typical standby current
Wide Operating Voltage: 2.0 – 5.0 VTimers
Timer0: 8-bit timer/counter with 8-bit prescalerTimer1: 16-bit timer/counter with prescaler, can be incremented during sleep via external crystal/clockTimer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler
![Page 7: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/7.jpg)
7
Capture, Compare, PWM modulesCapture is 16-bit, max. resolution is 12.5 nsCompare is 16-bit, max. resolution is 200 nsPWM max. resolution is 10-bit
10-bit multi-channel A-to-D Converter I2C (Inter IC)BusUSART for Serial Communication5 I/O Ports: A, B, C, D, and E
PIC -continued
![Page 8: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/8.jpg)
8
16F87x Family
![Page 9: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/9.jpg)
9
PIN and PACKAGE
DIP
QFP
PLCC
![Page 10: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/10.jpg)
10
PIN
![Page 11: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/11.jpg)
11
F877 Architecture
![Page 12: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/12.jpg)
12
BLOCK Diagram
14
8AD
TXRX
W
![Page 13: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/13.jpg)
13
ALU and W register
![Page 14: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/14.jpg)
14
PROGRAM MEMORY
13-bit PCAddressable up to 8Kx14-bitFLASH Memory Reset Vector: $0000Interrupt: $0004
![Page 15: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/15.jpg)
15
DATA memory (“Register File”)
Partitioned into 4 Banks (or Pages): 0-3Each Bank: 128 BytesUpper Locations: GPR (General Purpose) Reg.--RAMLower Location: SFR (Special Function) Reg.BANK SELECTION:
Status RegisterRP1: Status<6>RP0: Status<5>
![Page 16: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/16.jpg)
16
Register File Map
![Page 17: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/17.jpg)
17
Special Function Registers (bank 0)
![Page 18: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/18.jpg)
18
Special Function Registers (bank 1)
![Page 19: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/19.jpg)
19
Special Function Registers(bank 2 & 3)
![Page 20: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/20.jpg)
20
Input/Output Ports
![Page 21: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/21.jpg)
21
Interrupts
![Page 23: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/23.jpg)
23
Boot Loader Option
![Page 24: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/24.jpg)
24
PIC16F877 Bootloader
![Page 25: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/25.jpg)
25
Minimum Hardware for Boot Loaded Platform
![Page 26: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/26.jpg)
26
Commercially Available PIC16F877 Board
![Page 27: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/27.jpg)
27
PIC-40B-USB Schematic
![Page 28: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/28.jpg)
28
PIC-40B-USB Schematic (PIC area only)
![Page 29: PIC - Introduction PIC16F877](https://reader030.fdocuments.us/reader030/viewer/2022032610/623a2291d57f646b7d5fd1e8/html5/thumbnails/29.jpg)
29
Other PIC Board (Not fully evaluated yet)DLP-245PB-G-USBNot evaluatedProblem in Bootloader downloading
Problem in USB driver with Windows