English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (39/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
16.2.8 PAGE_ERASE COMMAND
The PAGE_ERASE command erases the specified
number of pages of code memory from the specified
base address. Depending on the device, the specified
base address must be a multiple of 0x400 or 0x100.
After the erase is performed, all targeted words of code
memory contain 0xFFFFFFFF.
FIGURE 16-14:
31
15
31
15
PAGE_ERASE COMMAND
16
Op code
0
Operand
16
Addr_High
0
Addr_Low
TABLE 16-9: PAGE_ERASE FORMAT
Field
Description
Op code
Operand
Addr_Low
Addr_High
0x5
Number of pages to erase
Low 16 bits of 32-bit destination
address
High 16 bits of 32-bit destination
address
Expected Response (1 word):
FIGURE 16-15: PAGE_ERASE RESPONSE
31
16
Last Command
15
0
Response Code
PIC32
16.2.9 BLANK_CHECK COMMAND
The BLANK_CHECK command queries the PE to
determine whether the contents of code memory and
code-protect Configuration bits (GCP and GWRP) are
blank (contains all ‘1’s).
FIGURE 16-16:
31
15
31
15
31
15
BLANK_CHECK COMMAND
16
Op code
0
Operand
16
Addr_High
0
Addr_Low
16
Length_High
0
Length_Low
TABLE 16-10: BLANK_CHECK FORMAT
Field
Description
Op code
0x6
Operand
Address
Length
Not used
Address where to start the Blank
Check
Number of program memory locations
to check in terms of bytes
Expected Response (1 word for blank device):
FIGURE 16-17: BLANK_CHECK RESPONSE
31
16
Last Command
15
0
Response Code
 2007-2013 Microchip Technology Inc.
DS61145L-page 39