Datasheet

PIC16F630/676
DS40039E-page 22 © 2007 Microchip Technology Inc.
3.2.3 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.
3.2.3.1 RA0/AN0/CIN+
Figure 3-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 A/D (PIC16F676 only)
an analog input to the comparator
3.2.3.2 RA1/AN1/CIN-/VREF
Figure 3-1 shows the diagram for this pin. The RA1 pin
is configurable to function as one of the following:
as a general purpose I/O
an analog input for the A/D (PIC16F676 only)
an analog input to the comparator
a voltage reference input for the A/D (PIC16F676
only)
FIGURE 3-1: BLOCK DIAGRAM OF RA0
AND RA1 PINS
I/O pin
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
Data Bus
WR
WPUA
RD
WPUA
RD PORTA
RD
PORTA
WR
PORTA
WR
TRISA
RD
TRISA
WR
IOCA
RD
IOCA
Interrupt-on-Change
To Comparator
To A/D Converter
Analog
Input Mode
RAPU
Analog
Input Mode