PIC16F872
28-Pin, 8-Bit CMOS FLASH Microcontroller
Devices Included in this Data Sheet:
Pin Diagram
DIP, SOIC, SSOP
• PIC16F872
Microcontroller Core Features:
1
2
3
4
5
6
7
8
9
28
27
26
25
24
23
22
21
20
19
18
17
16
15
RB7/PGD
RB6/PGC
RB5
MCLR/VPP/THV
RA0/AN0
RA1/AN1
• High-performance RISC CPU
RB4
RA2/AN2/VREF
RA3/AN3/VREF
RA4/T0CKI
RA5/AN4/SS
-
• Only 35 single word instructions to learn
RB3/PGM
RB2
RB1
RB0/INT
VDD
VSS
RC7
RC6
RC5/SDO
RC4/SDI/SDA
+
• All single cycle instructions except for program
branches which are two cycle
VSS
• Operating speed: DC - 20 MHz clock input
DC - 200 ns instruction cycle
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI
10
11
• 2K x 14 words of FLASH Program Memory
128 x 8 bytes of Data Memory (RAM)
64 x 8 bytes of EEPROM Data Memory
12
13
14
RC2/CCP1
RC3/SCK/SCL
• Pinout compatible to the PIC16C72A
• Interrupt capability (up to 10 sources)
• Eight level deep hardware stack
• Direct, indirect and relative addressing modes
• Power-on Reset (POR)
Peripheral Features:
• Timer0: 8-bit timer/counter with 8-bit prescaler
• Timer1: 16-bit timer/counter with prescaler,
can be incremented during sleep via external
crystal/clock
• Power-up Timer (PWRT) and Oscillator Start-up
Timer (OST)
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• Timer2: 8-bit timer/counter with 8-bit period
register, prescaler and postscaler
• Programmable code-protection
• Power saving SLEEP mode
• Selectable oscillator options
• One Capture, Compare, PWM module
- Capture is 16-bit, max. resolution is 12.5 ns
- Compare is 16-bit, max. resolution is 200 ns
- PWM max. resolution is 10-bit
• Low-power, high-speed CMOS FLASH/EEPROM
technology
• 10-bit multi-channel Analog-to-Digital converter
• Fully static design
• Synchronous Serial Port (SSP) with SPI (Master
Mode) and I2C (Master/Slave)
• In-Circuit Serial Programming (ICSP) via two
pins
• Brown-out detection circuitry for Brown-out Reset
(BOR)
• Single 5V In-Circuit Serial Programming capability
• In-Circuit Debugging via two pins
• Processor read/write access to program memory
• Wide operating voltage range: 2.0V to 5.5V
• High Sink/Source Current: 25 mA
• Commercial and Industrial temperature ranges
• Low-power consumption:
- < 2 mA typical @ 5V, 4 MHz
- 20 µA typical @ 3V, 32 kHz
- < 1 µA typical standby current
1999 Microchip Technology Inc.
Preliminary
DS30221A-page 1