PIC16F688
4.2.5
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.5.1 RA0/AN0/C1IN+/ICSPDAT/ULPWU
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 A/D
• an analog input to the comparator
• an analog input to the Ultra Low-Power Wake-up
• In-Circuit Serial Programming™ data
FIGURE 4-1:
BLOCK DIAGRAM OF RA0
Data Bus
WR
WPUDA
DQ
CK Q
Analog(1)
Input Mode
RAPU
VDD
Weak
RD
WPUDA
VDD
WR
PORTA
DQ
CK Q
I/O PIN
VSS
WR
TRISA
DQ
CK Q
RD
TRISA
RD
PORTA
WR
IOCA
DQ
CK Q
RD
IOCA
Interrupt-on-
Change
-
+
VT
Analog(1)
Input Mode
01
IULP
Vss
ULPWUE
QD
EN
Q3
QD
EN
RD PORTA
To Comparator
To A/D Converter
Note 1: Comparator mode and ANSEL determines analog Input mode.
© 2007 Microchip Technology Inc.
DS41203C-page 37