English
Language : 

PIC16F877-20L Datasheet, PDF (9/218 Pages) Microchip Technology – 28/40-Pin 8-Bit CMOS FLASH Microcontrollers
PIC16F87X
TABLE 1-2: PIC16F874 AND PIC16F877 PINOUT DESCRIPTION (CONTINUED)
Pin Name
DIP PLCC QFP I/O/P
Pin# Pin# Pin# Type
Buffer
Type
Description
PORTC is a bi-directional I/O port.
RC0/T1OSO/T1CKI 15
16
32
I/O
ST
RC0 can also be the Timer1 oscillator output or a
Timer1 clock input.
RC1/T1OSI/CCP2 16
18
35
I/O
ST
RC1 can also be the Timer1 oscillator input or
Capture2 input/Compare2 output/PWM2 output.
RC2/CCP1
17
19
36
I/O
ST
RC2 can also be the Capture1 input/Compare1
output/PWM1 output.
RC3/SCK/SCL
18
20
37
I/O
ST
RC3 can also be the synchronous serial clock input/
output for both SPI and I2C modes.
RC4/SDI/SDA
23
25
42
I/O
ST
RC4 can also be the SPI Data In (SPI mode) or
data I/O (I2C mode).
RC5/SDO
24
26
43
I/O
ST
RC5 can also be the SPI Data Out (SPI mode).
RC6/TX/CK
25
27
44
I/O
ST
RC6 can also be the USART Asynchronous Transmit
or Synchronous Clock.
RC7/RX/DT
26
29
1
I/O
ST
RC7 can also be the USART Asynchronous Receive
or Synchronous Data.
RD0/PSP0
RD1/PSP1
RD2/PSP2
RD3/PSP3
RD4/PSP4
RD5/PSP5
RD6/PSP6
RD7/PSP7
19
21
20
22
21
23
22
24
27
30
28
31
29
32
30
33
PORTD is a bi-directional I/O port or parallel slave port
when interfacing to a microprocessor bus.
38
I/O
ST/TTL(3)
39
I/O
ST/TTL(3)
40
I/O
ST/TTL(3)
41
I/O
ST/TTL(3)
2
I/O
ST/TTL(3)
3
I/O
ST/TTL(3)
4
I/O
ST/TTL(3)
5
I/O
ST/TTL(3)
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
8
9
9
10
10
11
PORTE is a bi-directional I/O port.
25
I/O
ST/TTL(3)
RE0 can also be read control for the parallel slave
port, or analog input5.
26
I/O
ST/TTL(3)
RE1 can also be write control for the parallel slave
port, or analog input6.
27
I/O
ST/TTL(3)
RE2 can also be select control for the parallel slave
port, or analog input7.
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
40 33,34
should be left unconnected.
Legend: I = input
O = output
— = Not used
I/O = input/output
TTL = TTL input
P = power
ST = Schmitt Trigger input
Note 1: This buffer is a Schmitt Trigger input when configured as an external interrupt.
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.
 1998-2013 Microchip Technology Inc.
DS30292D-page 9