Information
© 2010 Microchip Technology Inc. DS70152H-page 29
dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
4.2.12 QBLANK COMMAND
The QBLANK command queries the programming
executive 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.
The Blank Check for code memory begins at [Addr] and
advances toward larger addresses for the specified
number of instruction words.
QBLANK returns a QE_Code of 0xF0 if the specified
code memory is blank; otherwise, QBLANK returns a
QE_Code of 0x0F.
Expected Response (2 words for blank device):
0x1EF0
0x0002
Expected Response (2 words for non-blank device):
0x1E0F
0x0002
4.2.13 QVER COMMAND
The QVER command queries the version of the
programming executive software stored in test
memory. The “version.revision” information is returned
in the response’s QE_Code using a single byte with the
following format: main version in upper nibble and
revision in the lower nibble (i.e., 0x23 means
version 2.3 of programming executive software).
Expected Response (2 words):
0x1BMN (where “MN” stands for version M.N)
0x0002
4.3 Programming Executive
Responses
The programming executive sends a response to the
programmer for each command that it receives. The
response indicates if the command was processed
correctly. It includes any required response data or
error data.
The programming executive response set is shown in
Table 4-2. This table contains the opcode, mnemonic
and description for each response. The response format
is described in Section 4.3.1 “Response Format”.
TABLE 4-2: PROGRAMMING EXECUTIVE
RESPONSE OPCODES
15 12 11 0
Opcode Length
Reserved Size_MSB
Size_LSW
Reserved Addr_MSB
Addr_LSW
Field Description
Opcode 0xE
Length 0x5
Size Length of program memory to check
(in 24-bit words) + Addr_MS
Addr_MSB Most Significant Byte of the 24-bit
address
Addr_LSW Least Significant 16 bits of the 24-bit
address
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.
15 12 11 0
Opcode Length
Field Description
Opcode 0xB
Length 0x1
Opcode Mnemonic Description
0x1 PASS Command successfully
processed.
0x2 FAIL Command unsuccessfully
processed.
0x3 NACK Command not known.