2003 Microchip Technology Inc.
DS39582B-page 9
PIC16F87XA
PORTB is a bidirectional I/O port. PORTB can be software
programmed for internal weak pull-ups on all inputs.
RB0/INT
RB0
INT
21
18
I/O
I
TTL/ST
(1)
Digital I/O.
External interrupt.
RB1
22
19
I/O
TTL
Digital I/O.
RB2
23
20
I/O
TTL
Digital I/O.
RB3/PGM
RB3
PGM
24
21
I/O
I
TTL
Digital I/O.
Low-voltage (single-supply) ICSP programming enable pin.
RB4
25
22
I/O
TTL
Digital I/O.
RB5
26
23
I/O
TTL
Digital I/O.
RB6/PGC
RB6
PGC
27
24
I/O
I
TTL/ST
(2)
Digital I/O.
In-circuit debugger and ICSP programming clock.
RB7/PGD
RB7
PGD
28
25
I/O
I/O
TTL/ST
(2)
Digital I/O.
In-circuit debugger and ICSP programming data.
PORTC is a bidirectional I/O port.
RC0/T1OSO/T1CKI
RC0
T1OSO
T1CKI
11
8
I/O
O
I
ST
Digital I/O.
Timer1 oscillator output.
Timer1 external clock input.
RC1/T1OSI/CCP2
RC1
T1OSI
CCP2
12
9
I/O
I
I/O
ST
Digital I/O.
Timer1 oscillator input.
Capture2 input, Compare2 output, PWM2 output.
RC2/CCP1
RC2
CCP1
13
10
I/O
I/O
ST
Digital I/O.
Capture1 input, Compare1 output, PWM1 output.
RC3/SCK/SCL
RC3
SCK
SCL
14
11
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.
RC4/SDI/SDA
RC4
SDI
SDA
15
12
I/O
I
I/O
ST
Digital I/O.
SPI data in.
I
2
C data I/O.
RC5/SDO
RC5
SDO
16
13
I/O
O
ST
Digital I/O.
SPI data out.
RC6/TX/CK
RC6
TX
CK
17
14
I/O
O
I/O
ST
Digital I/O.
USART asynchronous transmit.
USART1 synchronous clock.
RC7/RX/DT
RC7
RX
DT
18
15
I/O
I
I/O
ST
Digital I/O.
USART asynchronous receive.
USART synchronous data.
V
SS
8, 19
5, 6
P
—
Ground reference for logic and I/O pins.
V
DD
20
17
P
—
Positive supply for logic and I/O pins.
TABLE 1-2:
PIC16F873A/876A PINOUT DESCRIPTION (CONTINUED)
Pin Name
PDIP, SOIC,
SSOP Pin#
QFN
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 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.
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655