Datasheet
2010 Microchip Technology Inc. DS41302D-page 125
PIC12F609/615/617/12HV609/615
12.10 In-Circuit Serial Programming™
ThePIC12F609/615/617/12HV609/615
microcontrollers can be serially programmed while in
the end application circuit. This is simply done with five
connections for:
•clock
•data
• power
• ground
• programming voltage
This allows customers to manufacture boards with
unprogrammed devices and then program the
microcontroller just before shipping the product. This
also allows the most recent firmware or a custom
firmware to be programmed.
The device is placed into a Program/Verify mode by
holding the GP0 and GP1 pins low, while raising the
MCLR
(VPP) pin from VIL to VIHH. See the Memory
Programming Specification (DS41284) for more
information. GP0 becomes the programming data and
GP1 becomes the programming clock. Both GP0 and
GP1 are Schmitt Trigger inputs in Program/Verify
mode.
A typical In-Circuit Serial Programming connection is
shown in Figure 12-10.
FIGURE 12-10: TYPICAL IN-CIRCUIT
SERIAL PROGRAMMING
CONNECTION
12.11 In-Circuit Debugger
Since in-circuit debugging requires access to three pins,
MPLAB
®
ICD 2 development with an 14-pin device is
not practical. A special 28-pin PIC12F609/615/617/
12HV609/615 ICD device is used with MPLAB ICD 2 to
provide separate clock, data and MCLR
pins and frees
all normally available pins to the user.
A special debugging adapter allows the ICD device to
be used in place of a PIC12F609/615/617/12HV609/
615 device. The debugging adapter is the only source
of the ICD device.
When the ICD
pin on the PIC12F609/615/617/
12HV609/615 ICD device is held low, the In-Circuit
Debugger functionality is enabled. This function allows
simple debugging functions when used with MPLAB
ICD 2. When the microcontroller has this feature
enabled, some of the resources are not available for
general use. Table 12-10 shows which features are
consumed by the background debugger.
TABLE 12-10: DEBUGGER RESOURCES
For more information, see “MPLAB
®
ICD 2 In-Circuit
Debugger User’s Guide” (DS51331), available on
Microchip’s web site (www.microchip.com).
FIGURE 12-11: 28 PIN ICD PINOUT
Note: To erase the device VDD must be above
the Bulk Erase V
DD minimum given in the
Memory Programming Specification
(DS41284)
External
Connector
Signals
To Normal
Connections
To Normal
Connections
PIC12F615/12HV615
V
DD
VSS
MCLR/VPP/GP3/RA3
GP1
GP0
+5V
0V
V
PP
CLK
Data I/O
* * *
*
* Isolation devices (as required)
PIC12F609/12HV609
PIC12F617/
Resource Description
I/O pins ICDCLK, ICDDATA
Stack 1 level
Program Memory Address 0h must be NOP
700h-7FFh
28-Pin PDIP
In-Circuit Debug Device
VDD
CS0
CS1
CS2
RA5
RA4
GND
RA0
RA1
SHUNTEN
RC3 NC
RA2
RC0
RA3
RC5
RC4
RC1
RC2
NC
1
2
3
4
5
6
7
8
9
10
28
27
26
25
24
23
22
21
20
19
ICDDATA ICD
NC
ICDCLK
ICDMCLR
NC
NC
NC
11
12
13
14
18
17
16
15
PIC16F616-ICD