English
Language : 

PIC16F882_09 Datasheet, PDF (45/328 Pages) Microchip Technology – 28/40/44-Pin, Enhanced Flash-Based 8-Bit CMOS Microcontrollers with nanoWatt Technology
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:
Data Bus
BLOCK DIAGRAM OF RA1
DQ
WR
PORTA
CK Q
WR
TRISA
DQ
CK Q
RD
TRISA
VDD
I/O Pin
VSS
Analog(1)
Input Mode
RD
PORTA
To Comparator
To A/D Converter
Note 1: ANSEL determines Analog Input mode.
3.2.3.3 RA2/AN2/VREF-/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:
Data Bus
DQ
WR
PORTA
CK Q
WR
TRISA
DQ
CK Q
RD
TRISA
BLOCK DIAGRAM OF RA2
VROE
CVREF
VDD
I/O Pin
VSS
Analog(1)
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.
© 2009 Microchip Technology Inc.
DS41291F-page 43