PIC16F882/883/884/886/887
3.2.3.2
RA1/AN1/C12IN1-
3.2.3.3
RA2/AN2/VREF-/CVREF/C2IN+
Figure 3-2 shows the diagram for this pin. This pin is
configurable to function as one of the following:
Figure 3-3 shows the diagram for this pin. This pin is
configurable to function as one of the following:
• a general purpose I/O
• a general purpose I/O
• an analog input for the ADC
• an analog input for the ADC
• a negative analog input to Comparator C1 or C2
• a negative voltage reference input for the ADC
and CVREF
FIGURE 3-2:
BLOCK DIAGRAM OF RA1
• a comparator voltage reference output
• a positive analog input to Comparator C2
Data Bus
FIGURE 3-3:
BLOCK DIAGRAM OF RA2
VDD
D
Q
Q
Data Bus
WR
PORTA
CK
VROE
CVREF
VDD
D
Q
Q
I/O Pin
D
Q
Q
WR
PORTA
CK
WR
CK
VSS
TRISA
I/O Pin
Analog(1)
Input Mode
D
Q
Q
RD
TRISA
WR
TRISA
CK
VSS
Analog(1)
Input Mode
RD
PORTA
RD
TRISA
To Comparator
To A/D Converter
Note 1: ANSEL determines Analog Input mode.
RD
PORTA
To Comparator (positive input)
To Comparator (VREF-)
To A/D Converter (VREF-)
To A/D Converter (analog channel)
Note 1: ANSEL determines Analog Input mode.
© 2007 Microchip Technology Inc.
Preliminary
DS41291D-page 43