Microchip Technology MCP1631RD-MCC2 Data Sheet

Page of 338
 2006-2012 Microchip Technology Inc.
DS41291G-page 47
PIC16F882/883/884/886/887
3.2.3.6
RA5/AN4/SS/C2OUT
 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
 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
V
DD
V
SS
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 SS Input
To A/D Converter
Note 1:
ANSEL determines Analog Input mode.
I/O Pin
V
DD
V
SS
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