Datasheet

2010 Microchip Technology Inc. DS41302D-page 47
PIC12F609/615/617/12HV609/615
5.2.4 PIN DESCRIPTIONS AND
DIAGRAMS
Each GPIO 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.
5.2.4.1 GP0/AN0
(1)
/CIN+/P1B
(1)
/ICSPDAT
Figure 5-1 shows the diagram for this pin. The GP0 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
a PWM output
(1)
In-Circuit Serial Programming data
5.2.4.2 GP1/AN1
(1)
/CIN0-/VREF
(1)
/ICSPCLK
Figure 5-1 shows the diagram for this pin. The GP1 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 5-1: BLOCK DIAGRAM OF GP<1:0>
Note 1: PIC12F615/617/HV615 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 GPIO
RD
WR
WR
RD
WR
IOC
RD
IOC
Interrupt-on-
To Comparator
Analog
(1)
Input Mode
GPPU
Analog
(1)
Input Mode
Change
Q1
WR
RD
WPU
Data Bus
WPU
GPIO
TRISIO
TRISIO
GPIO
Note 1: Comparator mode and ANSEL determines Analog Input mode.
2: Set has priority over Reset.
3: PIC12F615/617/HV615 only.
To A/D Converter
(3)
I/O Pin
S
(2)
R
Q
From other
GP<5:0> pins (GP0)
Write0’ to GBIF
GP<5:2, 0> pins (GP1)