Datasheet
2000-2013 Microchip Technology Inc. DS30569C-page 9
PIC16F870/871
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 8925I/O
ST/TTL
(3)
RE0 can also be read control for the parallel slave port, or
analog input 5.
RE1/WR
/AN6 91026I/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.
V
SS 12,31 13,34 6,29 P — Ground reference for logic and I/O pins.
V
DD 11,32 12,35 7,28 P — Positive supply for logic and I/O pins.
NC — 1,17,28,
40
12,13,
33,34
— These pins are not internally connected. These pins should be
left unconnected.
TABLE 1-2: PIC16F871 PINOUT DESCRIPTION (CONTINUED)
Pin Name
DIP
Pin#
PLCC
Pin#
QFP
Pin#
I/O/P
Type
Buffer
Type
Description
Legend: I = input O = output I/O = input/output P = power
— = Not used TTL = TTL input ST = Schmitt Trigger input
Note 1: This buffer is a Schmitt Trigger input when configured as an external interrupt or LVP mode.
2: This buffer is a Schmitt Trigger input when used in Serial Programming mode.
3: 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).
4: This buffer is a Schmitt Trigger input when configured in RC Oscillator mode and a CMOS input otherwise.