English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (41/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
16.2.12 PROGRAM_CLUSTER COMMAND
PROGRAM_CLUSTER programs the specified number of
bytes to the specified address. The address must be
32-bit aligned, and the number of bytes must be a
multiple of a 32-bit word.
FIGURE 16-22:
PROGRAM_CLUSTER
COMMAND
31
16
Op code
15
0
Operand
31
16
Addr_High
15
0
Addr_Low
31
16
Length_High
15
0
Length_Low
TABLE 16-13: PROGRAM_CLUSTER FORMAT
Field
Description
Op code
Operand
0x9
Not used
Address
Length
Start address for programming
Length of area to program in number
of bytes
Note:
If the PROGRAM_CLUSTER command fails,
the programmer should read the failing row
using the READ command from the Flash
memory. Next, the programmer should
compare the row received from Flash
memory to its local copy word-by-word to
determine the address where Flash
programming fails.
Expected Response (1 word):
FIGURE 16-23:
PROGRAM_CLUSTER
RESPONSE
31
16
Last Command
15
0
Response Code
PIC32
16.2.13 GET_DEVICEID COMMAND
The GET_DEVICEID command returns the hardware
ID of the device.
FIGURE 16-24:
GET_DEVICEID
COMMAND
31
16
Op code
15
0
Operand
TABLE 16-14: GET_DEVICEID FORMAT
Field
Description
Op code
Operand
0xA
Not used
Expected Response (1 word):
FIGURE 16-25:
GET_DEVICEID
RESPONSE
31
16
Last Command
15
0
Device ID
 2007-2013 Microchip Technology Inc.
DS61145L-page 41