English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (3/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
3.0 PROGRAMMING STEPS
All tool programmers must perform a common set of
steps, regardless of the actual method being used.
Figure 3-1 shows the set of steps to program PIC32
devices.
FIGURE 3-1:
PROGRAMMING FLOW
Start
Enter Enhanced ICSP™
(Only required for 2-wire)
Check Device Status
Erase Device
Enter Serial Exec Mode
Download the PE
(Optional)
Download a Data Block
Initiate Flash Write
No
Done
Yes
Verify Device
Exit Programming Mode
PIC32
The following sequence lists the steps, with a brief
explanation of each step. More detailed information
about the steps is available in the following sections.
1. Connect to the Target Device.
To ensure successful programming, all required
pins must be connected to appropriate signals.
See Section 4.0 “Connecting to the Device”
in this document for more information.
2. Place the Target Device in Programming Mode.
For 2-wire programming methods, the target
device must be placed in a special programming
mode (Enhanced ICSP™) before executing any
other steps.
Note: For the 4-wire programming methods,
Step 2 is not required.
See Section 7.0 “Entering 2-Wire Enhanced
ICSP Mode” for more information.
3. Check the Status of the Device.
Step 3 checks the status of the device to ensure
it is ready to receive information from the
programmer.
See Section 8.0 “Check Device Status” for
more information.
4. Erase the Target Device.
If the target memory block in the device is not
blank, or if the device is code-protected, an
erase step must be performed before
programming any new data.
See Section 9.0 “Erasing the Device” for
more information.
5. Enter Programming Mode.
Step 5 verifies that the device is not code-
protected and boots the TAP controller to start
sending and receiving data to and from the
PIC32 CPU.
See Section 10.0 “Entering Serial Execution
Mode” for more information.
6. Download the Programming Executive (PE).
The PE is a small block of executable code that
is downloaded into the RAM of the target device.
It will receive and program the actual data.
Note:
If the programming method being used
does not require the PE, Step 6 is not
required.
See Section 11.0 “Downloading the
Programming Executive (PE)” for more
information.
Done
 2007-2013 Microchip Technology Inc.
DS61145L-page 3