Datasheet
PIC16F785/HV785
DS41249E-page 38 © 2008 Microchip Technology Inc.
4.2.3 PORTA PIN DESCRIPTIONS AND
DIAGRAMS
Each PORTA pin is multiplexed with other functions.
The pins and their combined functions are briefly
described here. For specific information about individ-
ual functions such as the comparator or the A/D, refer
to the appropriate section in this Data Sheet.
4.2.3.1 RA0/AN0/C1IN+/ICSPDAT
Figure 4-1 shows the diagram for this pin. The RA0 pin
is configurable to function as one of the following:
• General purpose I/O
• Analog input for the A/D
• Analog input to Comparator 1
• In-Circuit Serial Programming
™
data
FIGURE 4-1: BLOCK DIAGRAM OF RA0
4.2.3.2 RA1/AN1/C12IN0-/V
REF/ICSPCLK
Figure 4-1 shows the diagram for this pin. The RA1 pin
is configurable to function as one of the following:
• General purpose I/O
• Analog input for the A/D
• Analog input to Comparators 1 and 2
• Voltage reference input for the A/D
• Buffered or unbuffered voltage reference output
• In-Circuit Serial Programming clock
FIGURE 4-2: BLOCK DIAGRAM OF RA1
I/O pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
D
Q
CK
Q
D
Q
CK
Q
VDD
Weak
Data Bus
WR
WPUA
RD
WPUA
RD PORTA
RD
PORTA
WR
PORTA
WR
TRISA
RD
TRISA
WR
IOCA
RD
IOCA
To Comparator
To A/D Converter
ANS0
RAPU
ANS0
D
EN
Q
D
EN
Q
D
EN
Q
Q1
Q3
Interrupt-on-
change
I/O pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
D
Q
CK
Q
D
Q
CK
Q
VDD
Weak
Data Bus
WR
WPUA
RD
WPUA
RD
PORTA
WR
PORTA
WR
TRISA
RD
TRISA
WR
IOCA
RD
IOCA
Interrupt-on-
To Comparators
To A/D Converter
RAPU
ANS1
CVROE
VROE*VREN
VROUT
RD PORTA
D
EN
Q
D
EN
Q
D
EN
Q
Q1
Q3
change