PIC10F200/202/204/206
FIGURE 9-10:
TYPICAL IN-CIRCUIT
SERIAL
PROGRAMMING™
CONNECTION
9.10 Program Verification/Code
Protection
If the code protection bit has not been programmed, the
on-chip program memory can be read out for
verification purposes.
To Normal
Connections
The first 64 locations and the last location (Reset
vector) can be read, regardless of the code protection
bit setting.
External
Connector
Signals
PIC10F20X
+5V
0V
VDD
9.11 ID Locations
VSS
VPP
MCLR/VPP
Four memory locations are designated as ID locations
where the user can store checksum or other code
identification numbers. These locations are not
accessible during normal execution, but are readable
and writable during Program/Verify.
GP1
GP0
CLK
Data I/O
Use only the lower 4 bits of the ID locations and always
VDD
program the upper 8 bits as ‘0’s.
To Normal
Connections
9.12 In-Circuit Serial Programming™
The PIC10F200/202/204/206 microcontrollers can be
serially programmed while in the end application circuit.
This is simply done with two lines for clock and data,
and three other lines for power, ground and the
programming voltage. This allows customers to manu-
facture 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 devices are placed into a Program/Verify mode by
holding the GP1 and GP0 pins low while raising the
MCLR (VPP) pin from VIL to VIHH (see programming
specification). GP1 becomes the programming clock
and GP0 becomes the programming data. Both GP1
and GP0 are Schmitt Trigger inputs in this mode.
After Reset, a 6-bit command is then supplied to the
device. Depending on the command, 16 bits of program
data are then supplied to or from the device, depending
if the command was a Load or a Read. For complete
details of serial programming, please refer to the
PIC10F200/202/204/206 Programming Specifications.
A typical In-Circuit Serial Programming connection is
shown in Figure 9-10.
DS41239D-page 50
© 2007 Microchip Technology Inc.