Datasheet

PIC16F87/88
DS30487D-page 8 2002-2013 Microchip Technology Inc.
TABLE 1-2: PIC16F87/88 PINOUT DESCRIPTION
Pin Name
PDIP/
SOIC
Pin#
SSOP
Pin#
QFN
Pin#
I/O/P
Type
Buffer
Type
Description
PORTA is a bidirectional I/O port.
RA0/AN0
RA0
AN0
17 19 23
I/O
I
TTL
Analog
Bidirectional I/O pin.
Analog input channel 0.
RA1/AN1
RA1
AN1
18 20 24
I/O
I
TTL
Analog
Bidirectional I/O pin.
Analog input channel 1.
RA2/AN2/CV
REF/VREF-
RA2
AN2
CV
REF
VREF-
(4)
1126
I/O
I
O
I
TTL
Analog
Analog
Bidirectional I/O pin.
Analog input channel 2.
Comparator V
REF output.
A/D reference voltage (Low) input.
RA3/AN3/V
REF+/C1OUT
RA3
AN3
V
REF+
(4)
C1OUT
2227
I/O
I
I
O
TTL
Analog
Analog
Bidirectional I/O pin.
Analog input channel 3.
A/D reference voltage (High) input.
Comparator 1 output.
RA4/AN4/T0CKI/C2OUT
RA4
AN4
(4)
T0CKI
C2OUT
3328
I/O
I
I
O
ST
Analog
ST
Bidirectional I/O pin.
Analog input channel 4.
Clock input to the TMR0 timer/counter.
Comparator 2 output.
RA5/MCLR
/VPP
RA5
MCLR
VPP
441
I
I
P
ST
ST
Input pin.
Master Clear (Reset). Input/programming voltage
input. This pin is an active-low Reset to the device.
Programming voltage input.
RA6/OSC2/CLKO
RA6
OSC2
CLKO
15 17 20
I/O
O
O
ST
Bidirectional I/O pin.
Oscillator crystal output. Connects to crystal or
resonator in Crystal Oscillator mode.
In RC mode, this pin outputs CLKO signal which has
1/4 the frequency of OSC1 and denotes the
instruction cycle rate.
RA7/OSC1/CLKI
RA7
OSC1
CLKI
16 18 21
I/O
I
I
ST
ST/CMOS
(3)
Bidirectional I/O pin.
Oscillator crystal input.
External clock source input.
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.
4: PIC16F88 devices only.
5: The CCP1 pin is determined by the CCPMX bit in Configuration Word 1 register.