![](http://datasheet.mmic.net.cn/Microchip-Technology/PIC18LF4320-I-PT_datasheet_99542/PIC18LF4320-I-PT_203.png)
PIC16(L)F1507
DS41586A-page 203
Preliminary
2011 Microchip Technology Inc.
23.0
IN-CIRCUIT SERIAL
PROGRAMMING (ICSP)
ICSP programming allows customers to manufacture
circuit boards with unprogrammed devices. Programming
can be done after the assembly process allowing the
device to be programmed with the most recent firmware
or a custom firmware. Five pins are needed for ICSP
programming:
ICSPCLK
ICSPDAT
MCLR/VPP
VDD
VSS
In Program/Verify mode the Program Memory, User IDs
and the Configuration Words are programmed through
serial communications. The ICSPDAT pin is a bidirec-
tional I/O used for transferring the serial data and the
ICSPCLK pin is the clock input. For more information on
ICSP refer to the “PIC12(L)F1501/PIC16(L)F150X
Memory Programming Specification
” (DS41573).
23.1
High-Voltage Programming Entry
Mode
The device is placed into High-Voltage Programming
Entry mode by holding the ICSPCLK and ICSPDAT
pins low then raising the voltage on MCLR/VPP to VIHH.
Some programmers produce VPP greater than VIHH
(9.0V), an external circuit is required to limit the VPP
FIGURE 23-1:
VPP LIMITER EXAMPLE CIRCUIT
VREF
VPP
VDD
VSS
ICSP_DATA
ICSP_CLOCK
NC
RJ11-6PIN
R1
270 Ohm
To MPLAB ICD 2
To Target Board
1
2
3
4
5
61
2
3
4
5
6
R2
R3
10k 1%
24k 1%
U1
LM431BCMX
A
2
3
6
7
8
A
K
NC
1
4
5
Note:
The MPLAB ICD 2 produces a VPP volt-
age greater than the maximum VPP spec-
ification of the PIC16(L)F1507.