PIC16F870/871
28/40-Pin 8-Bit CMOS FLASH Microcontrollers
Devices Included in this Data Sheet:
• PIC16F870 • PIC16F871
Pin Diagram
PDIP
Microcontroller Core Features:
MCLR/VPP/THV
RA0/AN0
1
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
RB7/PGD
RB6/PGC
2
• High-performance RISC CPU
RA1/AN1
RA2/AN2/VREF-
3
RB5
• Only 35 single word instructions to learn
4
RB4
RA3/AN3/VREF+
RA4/T0CKI
RB3/PGM
RB2
5
• All single cycle instructions except for program
branches which are two cycle
6
RA5/AN4
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
VDD
7
RB1
• Operating speed: DC - 20 MHz clock input
DC - 200 ns instruction cycle
8
RB0/INT
VDD
9
10
11
12
13
14
15
16
17
18
19
20
VSS
• 2K x 14 words of FLASH Program Memory
128 x 8 bytes of Data Memory (RAM)
64 x 8 bytes of EEPROM Data Memory
RD7/PSP7
VSS
RD6/PSP6
RD5/PSP5
RD4/PSP4
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI
RC2/CCP1
• Pinout compatible to the PIC16CXXX 28 and 40-
pin devices
RC7/RX/DT
RC6/TX/CK
RC5
• Interrupt capability (up to 11 sources)
• Eight level deep hardware stack
• Direct, indirect and relative addressing modes
• Power-on Reset (POR)
RC3
RC4
RD0/PSP0
RD3/PSP3
RD1/PSP1
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
1999 Microchip Technology Inc.
Preliminary
DS30569A-page 1