Datasheet

PIC12F609/615/617/12HV609/615
DS41302D-page 50 2010 Microchip Technology Inc.
5.2.4.5 GP4/AN3
(2)
/CIN1-/T1G/
P1B
(1, 2)
/OSC2/CLKOUT
Figure 5-4 shows the diagram for this pin. The GP4 pin
is configurable to function as one of the following:
a general purpose I/O
an analog input for the ADC
(2)
Comparator inverting input
a Timer1 gate (count enable)
PWM output, alternate pin
(1, 2)
a crystal/resonator connection
a clock output
FIGURE 5-4: BLOCK DIAGRAM OF GP4
Note 1: Alternate pin function.
2: 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
Analog
Input Mode
Data Bus
WR
WPU
RD
WPU
RD
GPIO
WR
GPIO
WR
TRISIO
RD
TRISIO
WR
IOC
RD
IOC
F
OSC/4
To A/D Converter
(5)
Oscillator
Circuit
OSC1
CLKOUT
0
1
CLKOUT
Enable
Enable
Analog
(3)
Input Mode
GPPU
RD GPIO
To T1G
INTOSC/
RC/EC
(2)
CLK
(1)
Modes
CLKOUT
Enable
Note 1: CLK modes are XT, HS, LP, TMR1 LP and CLKOUT Enable.
2: With CLKOUT option.
3: Analog Input mode comes from ANSEL.
4: Set has priority over Reset.
5: PIC12F615/617/HV615 only.
Q1
I/O Pin
Interrupt-on-
Change
S
(4)
R
Q
From other
Write ‘0’ to GBIF
GP<5, 3:0> pins