English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (42/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
PIC32
16.2.14 CHANGE_CFG COMMAND
CHANGE_CFG is used by the probe to set various con-
figuration settings for the PE. Currently, the single con-
figuration setting determines which of the following
calculation methods the PE should use:
• Software CRC calculation method
• Hardware calculation method
FIGURE 16-26: CHANGE_CFG COMMAND
31
16
Op code
15
0
Operand
31
16
CRCFlag_High
15
0
CRCFlag_Low
TABLE 16-15: CHANGE_CFG FORMAT
Field
Description
Op code
Operand
CRCFlag
0xB
Not used
If the value is ‘0’, the PE uses the
software CRC calculation method.
If the value is ‘1’, the PE uses the
hardware CRC unit to calculate the
CRC.
Expected Response (1 word):
FIGURE 16-27: CHANGE_CFG RESPONSE
31
16
Last Command
15
0
Response Code
Note: The command, CHANGE_CFG, is not
available in PIC32MX1XX/2XX devices.
16.2.15 GET_CHECKSUM COMMAND
GET_CHECKSUM returns the sum of all the bytes
starting at the address argument up to the length
argument. The result is a 32-bit word.
FIGURE 16-28:
31
15
31
15
31
15
CHANGE_CFG COMMAND
16
Op code
0
Operand
16
Addr_High
0
Addr_Low
16
Length_High
0
Length_Low
TABLE 16-16: GET_CHECKSUM FORMAT
Field
Description
Op code
0x0C
Operand
Not used
Addr_High
High-order 16 bits of the 32-bit starting
address of the data to calculate the
checksum for.
Addr_Low
Low-order 16 bits of the 32-bit starting
address of the data to calculate the
checksum for.
Length_High High-order 16 bits of the 32-bit length
of data to calculate the checksum for
in bytes.
Length_Low Low-order 16 bits of the 32-bit length
of data to calculate the checksum for
in bytes.
Expected Response (1 word):
FIGURE 16-29:
GET_CHECKSUM
RESPONSE
31
16
Last Command
15
0
Response Code
31
16
Checksum_High
15
0
Checksum_Low
DS61145L-page 42
 2007-2013 Microchip Technology Inc.