PIC16F870/871
Key Features
PICmicroTM Mid-Range MCU Family Reference Manual
(DS33023)
Operating Frequency
RESETS (and Delays)
FLASH Program Memory (14-bit words)
Data Memory (bytes)
EEPROM Data Memory
Interrupts
I/O Ports
Timers
Capture/Compare/PWM modules
Serial Communications
Parallel Communications
10-bit Analog-to-Digital Module
Instruction Set
PIC16F870
PIC16F871
DC - 20 MHz
POR, BOR (PWRT, OST)
2K
128
64
10
Ports A,B,C
3
1
USART
—
5 input channels
35 Instructions
DC - 20 MHz
POR, BOR (PWRT, OST)
2K
128
64
11
Ports A,B,C,D,E
3
1
USART
PSP
8 input channels
35 Instructions
2003 Microchip Technology Inc.
DS30569B-page 3
PIC16F870/871
TABLE 1-2: PIC16F871 PINOUT DESCRIPTION (CONTINUED)
Pin Name
DIP PLCC QFP I/O/P
Pin# Pin# Pin# Type
Buffer
Type
Description
PORTD is a bi-directional I/O port or parallel slave port when
interfacing to a microprocessor bus.
RD0/PSP0
19 21
38 I/O ST/TTL(3)
RD1/PSP1
20 22
39 I/O ST/TTL(3)
RD2/PSP2
21 23
40 I/O ST/TTL(3)
RD3/PSP3
22 24
41 I/O ST/TTL(3)
RD4/PSP4
27 30
2 I/O ST/TTL(3)
RD5/PSP5
28 31
3 I/O ST/TTL(3)
RD6/PSP6
29 32
4 I/O ST/TTL(3)
RD7/PSP7
30 33
5 I/O ST/TTL(3)
PORTE is a bi-directional I/O port.
RE0/RD/AN5
8 9 25 I/O ST/TTL(3)
RE0 can also be read control for the parallel slave port, or
analog input 5.
RE1/WR/AN6
9 10 26 I/O ST/TTL(3)
RE1 can also be write control for the parallel slave port, or
analog input 6.
RE2/CS/AN7
10 11
27 I/O ST/TTL(3)
RE2 can also be select control for the parallel slave port,
or analog input 7.
VSS
12,31 13,34 6,29 P
— Ground reference for logic and I/O pins.
VDD
11,32 12,35 7,28 P
— Positive supply for logic and I/O pins.
NC
— 1,17,28, 12,13,
— These pins are not internally connected. These pins should be
40 33,34
left unconnected.
Legend:
Note 1:
2:
3:
4:
I = input
O = output
I/O = input/output
P = power
— = Not used
TTL = TTL input
ST = Schmitt Trigger input
This buffer is a Schmitt Trigger input when configured as an external interrupt or LVP mode.
This buffer is a Schmitt Trigger input when used in Serial Programming mode.
This buffer is a Schmitt Trigger input when configured as general purpose I/O and a TTL input when used in the Parallel
Slave Port mode (for interfacing to a microprocessor bus).
This buffer is a Schmitt Trigger input when configured in RC Oscillator mode and a CMOS input otherwise.
2003 Microchip Technology Inc.
DS30569B-page 9