English
Language : 

PIC16F87-E Datasheet, PDF (10/228 Pages) Microchip Technology – 18/20/28-Pin Enhan lashMicrocontrollers 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
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/CVREF/VREF-
1
RA2
AN2
CVREF
VREF-(4)
1
26
I/O
TTL
I
Analog
O
I
Analog
Bidirectional I/O pin.
Analog input channel 2.
Comparator VREF output.
A/D reference voltage (Low) input.
RA3/AN3/VREF+/C1OUT 2
RA3
AN3
VREF+(4)
C1OUT
2
27
I/O
TTL
I
Analog
I
Analog
O
Bidirectional I/O pin.
Analog input channel 3.
A/D reference voltage (High) input.
Comparator 1 output.
RA4/AN4/T0CKI/C2OUT 3
RA4
AN4(4)
T0CKI
C2OUT
3
28
I/O
ST
I
Analog
I
ST
O
Bidirectional I/O pin.
Analog input channel 4.
Clock input to the TMR0 timer/counter.
Comparator 2 output.
RA5/MCLR/VPP
RA5
MCLR
VPP
4
4
1
I
ST
I
ST
P
–
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
ST
O
–
O
–
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 the CCPMX bit in Configuration Word 1 register.
DS30487C-page 8
 2005 Microchip Technology Inc.