Jump to main content
PIC32 Flash Programming Specification
Search
Introduction
1
Quick References
1.1
Reference Documentation
1.2
Acronyms and Abbreviations
2
Programming Overview
2.1
Devices with Dual Flash Panel and Dual Boot Regions
2.2
Programming Interfaces
2.3
Enhanced JTAG (EJTAG)
2.4
Data Sizes
3
Programming Steps
4
Connecting to the Device
4.1
Four-Wire Interface
4.2
Two-Wire Interface
4.3
PIC32MX Power Requirements
4.4
PIC32MX With V
BAT
Pin Power
4.5
PIC32MZ EC and PIC32MZ EF Power Requirements
4.6
PIC32MZ DA Power Requirements
4.7
PIC32MK Power Requirements
4.8
PIC32MZ W1 Power Requirements
5
Enhanced Joint Test Action Group (EJTAG) vs In-Circuit Serial Programming™ (ICSP)
5.1
Programming Interface
5.2
Four-Wire JTAG Details
5.3
Two-Wire ICSP Details
6
Pseudo Operations
6.1
Set Mode (
SetMode
) Pseudo Operation
6.2
Send Command (
SendCommand
) Pseudo Operation
6.3
Transfer Data (
XferData
) Pseudo Operation
6.4
Transfer Fast Data (
XferFastData
) Pseudo Operation
6.5
Transfer Instruction (
XferInstruction
) Pseudo Operation
6.6
Read from Address (
ReadFromAddress
) Pseudo Operation
6.7
Synchronize (
Synchronize
) Pseudo Operation
7
Entering Two-Wire Enhanced ICSP Mode
8
Check Device Status
8.1
Four-Wire Interface
8.2
Two-Wire Interface
9
Erasing the Device
9.1
Blank Check
10
Entering Serial Execution Mode
10.1
Four-Wire Interface
10.2
Two-Wire Interface
11
Downloading the Programming Executive (PE)
12
Downloading a Data Block
12.1
Without the PE
12.2
With the PE
13
Initiating a Page Erase
14
Initiating a Flash Row Write
14.1
With the PE
14.2
Without the PE
15
Verify Device Memory
15.1
Verifying Memory with the PE
15.2
Verifying Memory without the PE
16
Exiting Programming Mode
16.1
Four-Wire Interface
16.2
Two-Wire Interface
17
Programming Executive
17.1
PE Communication
17.2
The PE Command Set
18
Checksum
18.1
Theory
18.2
Mask Values
18.3
Algorithm
18.4
Example of Checksum Calculation
19
Configuration Memory and Device ID
19.1
Device Configuration
19.2
Device Code Protection Bit (CP)
19.3
Program Write Protection (PWP) Bits
20
Tap Controllers
20.1
Microchip (MTAP) TAP Controllers
20.2
EJTAG TAP Controller
21
AC/DC Characteristics and Timing Requirements
Appendix A: PIC32 Flash Memory Map
Appendix B: HEX File Format
Appendix C: Device IDs
22
Document Revision History
Microchip Information
Trademarks
Legal Notice
Microchip Devices Code Protection Feature