English
Language : 

PIC16F946 Datasheet, PDF (33/274 Pages) Microchip Technology – 64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt Technology
PIC16F946
3.1.1.3 RA2/AN2/C2+/VREF-/COM2
Figure 3-3 shows the diagram for this pin. The
RA2/AN2/C2+/VREF-/COM2 pin is configurable to
function as one of the following:
• a general purpose I/O
• an analog input for the A/D
• an analog input for Comparator 2
• a voltage reference input for the A/D
• an analog output for the LCD
FIGURE 3-3:
BLOCK DIAGRAM OF RA2/AN2/C2+/VREF-/COM2
Data Bus
WR PORTA
WR TRISA
D
Q
CK Q
Data Latch
D
Q
CK Q
TRIS Latch
RD TRISA
LCDEN and
LMUX<1:0> = 1X
VDD
Analog Input or
LCDEN and
LMUX<1:0> = 1X
TTL
Input Buffer
I/O Pin
RD PORTA
COM2
LCDEN and
LMUX<1:0> = 1X
To A/D Converter or Comparator
To A/D Module VREF- Input
© 2005 Microchip Technology Inc.
Preliminary
DS41265A-page 31