Microchip Technology MCP1631RD-MCC2 Data Sheet

Page of 338
 2006-2012 Microchip Technology Inc.
DS41291G-page 45
PIC16F882/883/884/886/887
3.2.3.2
RA1/AN1/C12IN1-
 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 negative analog input to Comparator C1 or C2
FIGURE 3-2:
BLOCK DIAGRAM OF RA1
3.2.3.3
RA2/AN2/V
REF
-/CV
REF
/C2IN+
 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 negative voltage reference input for the ADC 
and CV
REF
• a comparator voltage reference output
• a positive analog input to Comparator C2
FIGURE 3-3:
BLOCK DIAGRAM OF RA2
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
To A/D Converter
Note 1:
ANSEL determines Analog Input mode.
To Comparator
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
To Comparator (V
REF
-)
Note 1:
ANSEL determines Analog Input mode.
To Comparator (positive input)
CV
REF
VROE
To A/D Converter (V
REF
-)
To A/D Converter (analog channel)