Datasheet

2006-2012 Microchip Technology Inc. DS41291G-page 47
PIC16F882/883/884/886/887
3.2.3.6 RA5/AN4/SS/C2OUT
Figure 3-6 shows the diagram for this pin. This pin is
configurable to function as one of the following:
a general purpose I/O
an analog input for the ADC
a slave select input
a digital output from Comparator C2
FIGURE 3-6: BLOCK DIAGRAM OF RA5
3.2.3.7 RA6/OSC2/CLKOUT
Figure 3-7 shows the diagram for this pin. This pin is
configurable to function as one of the following:
a general purpose I/O
a crystal/resonator connection
a clock output
FIGURE 3-7: BLOCK DIAGRAM OF RA6
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Analog
(1)
Input Mode
Data Bus
RD
PORTA
WR
PORTA
WR
TRISA
RD
TRISA
0
1
C2OUT
C2OUT
Enable
To S S Input
To A/D Converter
Note 1: ANSEL determines Analog Input mode.
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
RD
PORTA
WR
PORTA
WR
TRISA
RD
TRISA
F
OSC/4
OSC2
CLKOUT
0
1
CLKOUT
Enable
Enable
INTOSCIO/
EXTRCIO/EC
(1)
CLKOUT
Enable
Note 1: With I/O option.
Circuit
Oscillator