Datasheet

PIC16F818/819
DS39598F-page 8 2001-2013 Microchip Technology Inc.
PORTB is a bidirectional I/O port. PORTB can be
software programmed for internal weak pull-up on
all inputs.
RB0/INT
RB0
INT
677
I/O
I
TTL
ST
(1)
Bidirectional I/O pin.
External interrupt pin.
RB1/SDI/SDA
RB1
SDI
SDA
788
I/O
I
I/O
TTL
ST
ST
Bidirectional I/O pin.
SPI data in.
I
2
C™ data.
RB2/SDO/CCP1
RB2
SDO
CCP1
899
I/O
O
I/O
TTL
ST
ST
Bidirectional I/O pin.
SPI data out.
Capture input, Compare output, PWM output.
RB3/CCP1/PGM
RB3
CCP1
PGM
91010
I/O
I/O
I
TTL
ST
ST
Bidirectional I/O pin.
Capture input, Compare output, PWM output.
Low-Voltage ICSP™ Programming enable pin.
RB4/SCK/SCL
RB4
SCK
SCL
10 11 12
I/O
I/O
I
TTL
ST
ST
Bidirectional I/O pin. Interrupt-on-change pin.
Synchronous serial clock input/output for SPI.
Synchronous serial clock input for I
2
C.
RB5/SS
RB5
SS
11 12 13
I/O
I
TTL
TTL
Bidirectional I/O pin. Interrupt-on-change pin.
Slave select for SPI in Slave mode.
RB6/T1OSO/T1CKI/PGC
RB6
T1OSO
T1CKI
PGC
12 13 15
I/O
O
I
I
TTL
ST
ST
ST
(2)
Interrupt-on-change pin.
Timer1 Oscillator output.
Timer1 clock input.
In-circuit debugger and ICSP programming
clock pin.
RB7/T1OSI/PGD
RB7
T1OSI
PGD
13 14 16
I/O
I
I
TTL
ST
ST
(2)
Interrupt-on-change pin.
Timer1 oscillator input.
In-circuit debugger and ICSP programming
data pin.
V
SS 5 5, 6 3, 5 P Ground reference for logic and I/O pins.
VDD 14 15, 16 17, 19 P Positive supply for logic and I/O pins.
TABLE 1-2: PIC16F818/819 PINOUT DESCRIPTIONS (CONTINUED)
Pin Name
PDIP/
SOIC
Pin#
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.