dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
DS70152H-page 28
2010 Microchip Technology Inc.
4.2.10
ERASEP COMMAND
The ERASEP command instructs the programming
executive to page erase [NUM_PAGES] of code mem-
ory. The code memory must be erased at an “even” 512
instruction word address boundary
Expected Response (2 words):
0x1900
0x0002
4.2.11
CRCP COMMAND
The CRCP command performs a CRC-16 on the range
of memory specified. This command can substitute for
a full chip verify. Data is shifted in a packed method as
demonstrated
in
byte-wise
Least
Significant Byte first.
Example:
CRC-CITT-16 with test data of “123456789” becomes
0x29B1
Expected Response (3 words):
QE_Code: 0x1C00
Length: 0x0003
CRC Value: 0xXXXX
15
12 11
8 7
0
Opcode
Length
NUM_PAGES
Addr_MSB
Addr_LS
Field
Description
Opcode
0x9
Length
0x3
NUM_PAGES Up to 255
Addr_MSB
Most Significant Byte of the 24-bit
address
Addr_LS
Least Significant 16 bits of the 24-bit
address
15
12 11
8 7
0
Opcode
Length
Reserved
Addr_MSB
Addr_LSW
Reserved
Size_MSB
Size_LSW
Field
Description
Opcode
0xC
Length
0x5
Reserved
0x0
Addr_MSB
Most Significant Byte of 24-bit
address
Addr_LSW
Least Significant 16 bits of 24-bit
address
Size
Number of 24-bit locations (address
range divided by 2)