Datasheet
PIC16F610/616/16HV610/616
DS41288F-page 36 © 2009 Microchip Technology Inc.
4.2.4 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
individual functions such as the Comparator or the
ADC, refer to the appropriate section in this data sheet.
4.2.4.1 RA0/AN0
(1)
/C1IN+/ICSPDAT
Figure 4-1 shows the diagram for this pin. The RA0 pin
is configurable to function as one of the following:
• a general purpose I/O
• an analog input for the ADC
(1)
• an analog non-inverting input to the comparator
• In-Circuit Serial Programming data
4.2.4.2 RA1/AN1
(1)
/C12IN0-/VREF
(1)
/
ICSPCLK
Figure 4-1 shows the diagram for this pin. The RA1 pin
is configurable to function as one of the following:
• a general purpose I/O
• an analog input for the ADC
(1)
• an analog inverting input to the comparator
• a voltage reference input for the ADC
(1)
• In-Circuit Serial Programming clock
FIGURE 4-1: BLOCK DIAGRAM OF RA<1:0>
Note 1: PIC16F616/16HV616 only.
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
D
Q
CK
Q
D
Q
CK
Q
VDD
D
EN
Q
D
EN
Q
Weak
RD PORTA
RD
WR
WR
RD
WR
IOCA
RD
IOCA
Interrupt-on-
To Comparator
Analog
(1)
Input Mode
RAPU
Analog
(1)
Input Mode
Change
Q1
WR
RD
WPUA
Data Bus
WPUA
PORTA
TRISA
TRISA
PORTA
Note 1: Comparator mode and ANSEL determines Analog Input mode.
2: Set has priority over Reset.
3: PIC16F616/16HV616 only.
To A/D Converter
(3)
I/O Pin
S
(2)
R
Q
From other
RA<5:1> pins (RA0)
Write ‘0’ to RAIF
RA<5:2, 0> pins (RA1)