Datasheet
© 2007 Microchip Technology Inc. DS41250F-page 47
PIC16F913/914/916/917/946
3.2.1.3 RA2/AN2/C2+/VREF-/COM2
Figure 3-3 shows the diagram for this pin. The RA2 pin
is configurable to function as one of the following:
• a general purpose I/O
• an analog input for the ADC
• an analog input for Comparator C2
• a voltage reference input for the ADC
• an analog output for the LCD
FIGURE 3-3: BLOCK DIAGRAM OF RA2
QD
Q
CK
Data Latch
TRIS Latch
RD TRISA
RD PORTA
QD
Q
CK
To A/D Converter and Comparator
COM2
Data Bus
WR PORTA
WR TRISA
To A/D Module VREF- Input
Analog Input or
I/O Pin
TTL
Input Buffer
LCDEN and
LMUX<1:0> = 1X
LCDEN and
LMUX<1:0> = 1X
LCDEN and
LMUX<1:0> = 1X
VDD
VSS