English
Language : 

PIC16F87 Datasheet, PDF (10/214 Pages) Microchip Technology – 18/20/28-Pin Enhanced FLASH Microcontrollers with nanoWatt Technology
PIC16F87/88
TABLE 1-2: PIC16F87/88 PINOUT DESCRIPTION
Pin Name
PDIP/
SOIC
Pin#
SSOP
Pin#
QFN
Pin#
I/O/P
Type
Buffer
Type
Description
RA0/AN0
RA0
AN0
17
19
23
I/O
I
RA1/AN1
RA1
AN1
18
20
24
I/O
I
RA2/AN2/CVREF/VREF-
1
RA2
AN2
CVREF
VREF-(4)
1
26
I/O
I
O
I
RA3/AN3/VREF+/C1OUT 2
RA3
AN3
VREF+(4)
C1OUT
2
27
I/O
I
I
O
RA4/AN4/T0CKI/C2OUT 3
RA4
AN4(4)
T0CKI
C2OUT
3
28
I/O
I
I
O
RA5/MCLR/VPP
RA5
MCLR
4
4
1
I
I
VPP
RA6/OSC2/CLKO
RA6
OSC2
P
15
17
20
I/O
O
CLKO
O
PORTA is a bidirectional I/O port.
TTL
Analog
Bidirectional I/O pin.
Analog input channel 0.
TTL
Analog
Bidirectional I/O pin.
Analog input channel 1.
TTL
Analog
Analog
Bidirectional I/O pin.
Analog input channel 2.
Comparator VREF output.
A/D reference voltage (Low) input.
TTL
Analog
Analog
Bidirectional I/O pin.
Analog input channel 3.
A/D reference voltage (High) input.
Comparator 1 output.
ST
Analog
ST
Bidirectional I/O pin.
Analog input channel 4.
Clock input to the TMR0 timer/counter.
Comparator 2 output.
ST
Input pin.
ST
Master Clear (Reset). Input/programming voltage
input. This pin is an active low RESET to the device.
–
Programming voltage input.
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
ST
I ST/CMOS(3)
Bidirectional I/O pin.
Oscillator crystal input.
I
–
External clock source input.
Legend:
Note 1:
2:
3:
4:
5:
I = Input
O = Output
I/O = Input/Output
P = Power
– = Not used
TTL = TTL Input
ST = Schmitt Trigger Input
This buffer is a Schmitt Trigger input when configured as the external interrupt.
This buffer is a Schmitt Trigger input when used in Serial Programming mode.
This buffer is a Schmitt Trigger input when configured in RC Oscillator mode and a CMOS input otherwise.
PIC16F88 devices only.
The CCP1 pin is determined by CCPMX in Configuration Word 1 register.
DS30487B-page 8
Preliminary
 2003 Microchip Technology Inc.