dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
4.2.12
15
QVERCOMMAND
4.3.1
RESPONSE FORMAT
All programming executive responses have a general
format consisting of a two-word header and any
required data for the command.
12 11
0
Opcode
Length
Field
Opcode
Length
Description
15
12 11
8
7
0
0xB
0x1
Opcode
Last_Cmd
Length
QE_Code
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).
D_1 (if applicable)
...
D_N (if applicable)
Expected Response (2 words):
Field
Description
Response opcode.
0x1BMN (where “MN” stands for version M.N)
0x0002
Opcode
Last_Cmd
Programmer command that
generated the response.
4.3
Programming Executive
Responses
QE_Code
Length
Query code or error code.
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.
Response length in 16-bit words
(includes 2 header words).
D_1
D_N
First 16-bit data word (if applicable).
Last 16-bit data word (if applicable).
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”.
4.3.1.1
Opcode Field
The opcode is a 4-bit field in the first word of the
response. The opcode indicates how the command
was processed (see Table 4-2). If the command was
processed successfully, the response opcode is PASS.
If there was an error in processing the command, the
response opcode is FAIL and the QE_Code indicates
the reason for the failure. If the command sent to
the programming executive is not identified, the
programming executive returns a NACK response.
TABLE 4-2:
PROGRAMMING EXECUTIVE
RESPONSE OPCODES
Opcode Mnemonic
Description
0x1
PASS
Command successfully
processed.
4.3.1.2
Last_Cmd Field
0x2
0x3
FAIL
Command unsuccessfully
processed.
The Last_Cmd is a 4-bit field in the first word of
the response and indicates the command that the
programming executive processed. Since the program-
ming executive can only process one command at a
time, this field is technically not required. However, it
can be used to verify that the programming executive
correctly received the command that the programmer
transmitted.
NACK
Command not known.
© 2007 Microchip Technology Inc.
Preliminary
DS70152D-page 53