dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
4.2.10
15
PROGWCOMMAND
12 11 8 7
4.2.11
15
QBLANKCOMMAND
0
12 11
0
Opcode
Length
Opcode
Length
Reserved
Addr_MSB
PSize
Addr_LS
Data_LS
Field
Description
Reserved
Data_MSB
Opcode
Length
PSize
0xA
0x2
Field
Description
Length of program memory to check
(in 24-bit words) +1, up to a max of
49152
Opcode
Length
0x6
0x5
The QBLANKcommand queries the programming exec-
utive to determine if the contents of code memory are
blank (contains all ‘1’s). The size of code memory to
check must be specified in the command.
Reserved
0x0
Addr_MSB MSB of 24-bit destination address
Addr_LS
Least Significant 16 bits of 24-bit
destination address
The Blank Check for code memory begins at 0x0 and
advances toward larger addresses for the specified
number of instruction words.
Data_MSB MSB of 24-bit data
Data_LS Least Significant 16 bits of 24-bit
data
QBLANK returns a QE_Code of 0xF0 if the specified
code memory and code-protect bits are blank;
otherwise, QBLANK returns a QE_Code of 0x0F.
The PROGWcommand instructs the programming exec-
utive to program one word of code memory (3 bytes) to
the specified memory address.
Expected Response (2 words for blank device):
After the word has been programmed to code memory,
the programming executive verifies the programmed
data against the data in the command.
0x1AF0
0x0002
Expected Response (2 words for non-blank device):
Expected Response (2 words):
0x1A0F
0x0002
0x1600
0x0002
Note:
The QBLANK command does not check
the system operation Configuration bits
since these bits are not set to ‘1’ when a
Chip Erase is performed.
DS70152D-page 52
Preliminary
© 2007 Microchip Technology Inc.