English
Language : 

PIC16F610 Datasheet, PDF (125/180 Pages) Microchip Technology – 14-Pin, Flash-Based 8-Bit CMOS Microcontrollers
PIC16F610/616/16HV610/616
12.10 In-Circuit Serial Programming™
The PIC16F610/616/16HV610/616 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 micro-
controller 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 RA0 and RA1 pins low, while raising the
MCLR (VPP) pin from VIL to VIHH. See the “PIC12F60X/
12F61X/16F61X Memory Programming Specification”
(DS41284) for more information. RA0 becomes the
programming data and RA1 becomes the programming
clock. Both RA0 and RA1 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
External
Connector
Signals
+5V
0V
VPP
To Normal
Connections
*
PIC16F610/16HV610
PIC16F616/16HV616
VDD
VSS
MCLR/VPP/RA3
CLK
Data I/O
RA1
RA0
*
*
*
To Normal
Connections
* Isolation devices (as required)
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 PIC16F610/
616/16HV610/616 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 PIC16F610/616/16HV610/616
device. The debugging adapter is the only source of the
ICD device.
When the ICD pin on the PIC16F610/616/16HV610/
616 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-9 shows which features are consumed
by the background debugger.
TABLE 12-9: DEBUGGER RESOURCES
Resource
Description
I/O pins
Stack
Program Memory
ICDCLK, ICDDATA
1 level
Address 0h must be NOP
700h-7FFh
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
28-Pin PDIP
In-Circuit Debug Device
VDD
CS0
CS1
CS2
RA5
RA4
RA3
RC5
RC4
RC3
NC
ICDCLK
ICDMCLR
ICDDATA
1
28
2
27
3
26
4
25
5
24
6
23
7
22
8
21
9
20
10 19
11 18
12 17
13 16
14 15
GND
RA0
RA1
SHUNTEN
RA2
RC0
RC1
RC2
NC
NC
NC
NC
NC
ICD
Note:
To erase, the device VDD must be above
the Bulk Erase VDD minimum given in the
“PIC12F615/12HV615/16F616/16HV616
Memory Programming Specification”
(DS41284)
© 2007 Microchip Technology Inc.
Preliminary
DS41288C-page 123