PIC16F870/871
28/40-Pin, 8-Bit CMOS FLASH Microcontrollers
Devices Included in this Data Sheet:
Pin Diagram
• PIC16F870
• PIC16F871
PDIP
MCLR/VPP/THV
RA0/AN0
1
2
3
4
5
6
7
8
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
RB7/PGD
RB6/PGC
Microcontroller Core Features:
RA1/AN1
RA2/AN2/VREF-
RB5
RB4
RB3/PGM
RB2
• High performance RISC CPU
RA3/AN3/VREF+
RA4/T0CKI
• Only 35 single word instructions to learn
• All single cycle instructions except for program
branches which are two-cycle
RA5/AN4
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
VDD
RB1
RB0/INT
VDD
9
• Operating speed: DC - 20 MHz clock input
DC - 200 ns instruction cycle
10
11
12
13
14
15
16
17
18
19
20
VSS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5
• 2K x 14 words of FLASH Program Memory
128 x 8 bytes of Data Memory (RAM)
64 x 8 bytes of EEPROM Data Memory
VSS
OSC1/CLKI
OSC2/CLKO
RC0/T1OSO/T1CKI
RC1/T1OSI
RC2/CCP1
• Pinout compatible to the PIC16CXXX 28 and
40-pin devices
RC3
RD0/PSP0
RD1/PSP1
RC4
RD3/PSP3
• Interrupt capability (up to 11 sources)
• Eight level deep hardware stack
• Direct, Indirect and Relative Addressing modes
• Power-on Reset (POR)
RD2/PSP2
• Power-up Timer (PWRT) and
Oscillator Start-up Timer (OST)
Peripheral Features:
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• 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
• Programmable code protection
• Power saving SLEEP mode
• Selectable oscillator options
• Timer2: 8-bit timer/counter with 8-bit period
register, prescaler and postscaler
• Low power, high speed CMOS FLASH/EEPROM
technology
• 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
• Fully static design
• In-Circuit Serial Programming(ICSP)via
two pins
• Single 5V In-Circuit Serial Programming capability
• In-Circuit Debugging via two pins
• 10-bit multi-channel Analog-to-Digital converter
• Universal Synchronous Asynchronous Receiver
Transmitter (USART/SCI) with 9-bit address
detection
• 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:
• Parallel Slave Port (PSP) 8-bits wide, with
external RD, WR and CS controls (40/44-pin only)
• Brown-out detection circuitry for
Brown-out Reset (BOR)
- < 1.6 mA typical @ 5V, 4 MHz
- 20 A typical @ 3V, 32 kHz
- < 1 A typical standby current
2000-2013 Microchip Technology Inc.
DS30569C-page 1