Datasheet

2013 Microchip Technology Inc. DS22331A-page 189
MCP19111
28.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
•V
DD
•V
SS
In Program/Verify mode the Program Memory, User IDs
and the Configuration Words are programmed through
serial communications. The ICSPDAT pin is a
bidirectional I/O used for transferring the serial data and
the ICSPCLK pin is the clock input. The device is placed
into a Program/Verify mode by holding the ICSPDAT and
ICSPCLK pins low, while raising the MCLR
pin from V
IL
to
V
IHH
.
28.1 Common Programming Interfaces
Connection to a target device is typically done through
an ICSP header. A commonly found connector on
development tools is the RJ-11 in the 6P6C (6 pin,
6 connector) configuration. See Figure 28-1.
FIGURE 28-1: ICD RJ-11 STYLE
CONNECTOR INTERFACE
Another connector often found in use with the PICkit™
programmers is a standard 6-pin header with 0.1 inch
spacing. Refer to Figure 28-2.
FIGURE 28-2: PICkit-STYLE CONNECTOR INTERFACE
1
2
3
4
5
6
Target
Bottom Side
PC Board
MCLR
V
SS
ICSPCLK
V
DD
ICSPDAT
NC
Pin Description
1 = 1 = MCLR
2=2 = V
DD
Target
3=3 = V
SS
(ground)
4 = 4 = ICSPDAT
5 = 5 = ICSPCLK
6 = 6 = No Connect
1
2
3
4
5
6
* The 6-pin header (0.100" spacing) accepts 0.025" square pins.
Pin Description*
1 = 1 = MCLR
2=2 = V
DD
Target
3=3 = V
SS
(ground)
4=4 = ICSPDAT
5=5 = ICSPCLK
6 = 6 = No Connect
Pin 1 Indicator