English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (40/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
PIC32
16.2.10 EXEC_VERSION COMMAND
EXEC_VERSION queries for the version of the PE
software stored in RAM.
FIGURE 16-18:
EXEC_VERSION
COMMAND
31
16
Op code
15
0
Operand
TABLE 16-11: EXEC_VERSION FORMAT
Field
Description
Op code
Operand
0x7
Not used
Expected Response (1 word):
FIGURE 16-19:
EXEC_VERSION
RESPONSE
31
16
Last Command
15
0
Version Number
16.2.11 GET_CRC COMMAND
GET_CRC calculates the CRC of the buffer from the
specified address to the specified length, using the
table look-up method. The CRC details are as follows:
• CRC-CCITT, 16-bit
• Polynomial: X^16+X^12+X^5+1, hex 0x00011021
• Seed: 0xFFFF
• Most Significant Byte (MSB) shifted in first
Note 1: In the response, only the CRC Least
Significant 16 bits are valid.
2: The PE will automatically determine if the
hardware CRC is available and use it by
default. The hardware CRC is not used
on PIC32MX1XX/2XX devices.
FIGURE 16-20:
31
GET_CRC COMMAND
16
Op code
15
0
Operand
31
16
Addr_High
15
0
Addr_Low
31
16
Length_High
15
0
Length_Low
TABLE 16-12: GET_CRC FORMAT
Field
Description
Op code
Operand
Address
Length
0x8
Not used
Address where to start calculating the
CRC
Length of buffer on which to calculate
the CRC, in number of bytes
Expected Response (2 words):
FIGURE 16-21: GET_CRC RESPONSE
31
16
Last Command
15
0
Response Code
31
16
CRC_High
15
0
CRC_Low
DS61145L-page 40
 2007-2013 Microchip Technology Inc.