Datasheet

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