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