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
Data Bus
D
Q
Q
VDD
WR PORTA
WR TRISA
CK
Data Latch
D
Q
I/O Pin
VSS
CK
Q
TRIS Latch
Analog Input or
LCDEN and
LMUX<1:0> = 1X
RD TRISA
LCDEN and
LMUX<1:0> = 1X
TTL
Input Buffer
RD PORTA
COM2
LCDEN and
LMUX<1:0> = 1X
To A/D Converter and Comparator
To A/D Module VREF- Input
© 2007 Microchip Technology Inc.
DS41250F-page 47