
2001 Microchip Technology Inc.
Advance Information
DS39582A-page 9
PIC16F87XA
PORTB is a bi-directional I/O port. PORTB can be software
programmed for internal weak pull-up on all inputs.
RB0/INT
RB0
INT
RB1
RB2
RB3/PGM
RB3
PGM
RB4
RB5
RB6/PGC
RB6
PGC
RB7/PGD
RB7
PGD
21
I/O
I
I/O
I/O
TTL/ST
(1)
Digital I/O.
External interrupt.
Digital I/O.
Digital I/O.
22
23
24
TTL
TTL
TTL
I/O
I/O
I/O
I/O
Digital I/O.
Low voltage ICSP programming enable pin.
Digital I/O.
Digital I/O.
25
26
27
TTL
TTL
I/O
I/O
TTL/ST
(2)
Digital I/O.
In-Circuit Debugger and ICSP programming clock.
28
I/O
I/O
TTL/ST
(2)
Digital I/O.
In-Circuit Debugger and ICSP programming data.
PORTC is a bi-directional I/O port.
RC0/T1OSO/T1CKI
RC0
T1OSO
T1CKI
RC1/T1OSI/CCP2
RC1
T1OSI
CCP2
RC2/CCP1
RC2
CCP1
RC3/SCK/SCL
RC3
SCK
SCL
RC4/SDI/SDA
RC4
SDI
SDA
RC5/SDO
RC5
SDO
RC6/TX/CK
RC6
TX
CK
RC7/RX/DT
RC7
RX
DT
V
SS
V
DD
Legend:
11
I/O
O
I
ST
Digital I/O.
Timer1 oscillator output.
Timer1 external clock input.
12
I/O
I
I/O
ST
Digital I/O.
Timer1 oscillator input.
Capture2 input, Compare2 output, PWM2 output.
13
I/O
I/O
ST
Digital I/O.
Capture1 input/Compare1 output/PWM1 output.
14
I/O
I/O
I/O
ST
Digital I/O.
Synchronous serial clock input/output for SPI mode.
Synchronous serial clock input/output for I
2
C mode.
15
I/O
I
I/O
ST
Digital I/O.
SPI data in.
I
2
C data I/O.
16
I/O
O
ST
Digital I/O.
SPI data out.
17
I/O
O
I/O
ST
Digital I/O.
USART asynchronous transmit.
USART 1 synchronous clock.
18
I/O
I
I/O
P
P
ST
Digital I/O.
USART asynchronous receive.
USART synchronous data.
Ground reference for logic and I/O pins.
Positive supply for logic and I/O pins.
I/O = input/output
ST = Schmitt Trigger input
8, 19
20
—
—
TABLE 1-2:
PIC16F873A/876A PINOUT DESCRIPTION (CONTINUED)
Pin Name
Pin#
I/O/P
Type
Buffer
Type
Description
I = input
—
= Not used
O = output
TTL = TTL input
P = power
Note 1:
This buffer is a Schmitt Trigger input when configured as the 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 in RC oscillator mode and a CMOS input otherwise.