English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (34/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
PIC32
16.2.2 RESPONSE FORMAT
The PE response set is shown in Table 16-3. All PE
responses have a general format consisting of a 32-bit
header and any required data for the response (see
Figure 16-2).
FIGURE 16-2:
RESPONSE FORMAT
31
16
Last Command
15
0
Response Code
31
16
Data_High_1
15
0
Data_Low_1
31
16
Data_High_N
15
0
Data_Low_N
16.2.2.1 Last_Cmd Field
Last_Cmd is a 16-bit field in the first word of the
response and indicates the command that the PE
processed. It can be used to verify that the PE correctly
received the command that the programmer
transmitted.
16.2.2.2 Response Code
The response code indicates whether the last
command succeeded or failed, or if the command is a
value that is not recognized. The response code values
are shown in Table 16-3.
TABLE 16-3: RESPONSE VALUES
Op code Mnemonic
Description
0x0
PASS
Command successfully
processed
0x2
FAIL
Command unsuccessfully
processed
0x3
NACK
Command not known
16.2.2.3 Optional Data
The response header may be followed by optional data
in case of certain commands such as read. The
number of 32-bit words of optional data varies
depending on the last command operation and its
parameters.
16.2.3 ROW_PROGRAM COMMAND
The ROW_PROGRAM command instructs the PE to
program a row of data at a specified address.
The data to be programmed to memory, located in
command words Data_1 through Data_N, must be
arranged using the packed instruction word format
shown in Table 16-4 (this command expects an entire
row of data).
FIGURE 16-3:
31
15
31
15
31
15
31
15
ROW_PROGRAM COMMAND
16
Op code
0
Operand
16
Addr_High
0
Addr_Low
16
Data_High_1
0
Data_Low_1
16
Data_High_N
0
Data_Low_N
TABLE 16-4: ROW_PROGRAM FORMAT
Field
Description
Op code
0x0
Operand
Not used
Addr_High High 16 bits of 32-bit destination
address
Addr_Low
Low 16 bits of 32-bit destination
address
Data_High_1 High 16 bits data word 1
Data_Low_1 Low 16 bits data word 1
Data_High_N High 16 bits data word 2 through N
Data_Low_N Low 16 bits data word 2 through N
Expected Response (1 word):
FIGURE 16-4:
31
15
ROW_PROGRAM RESPONSE
16
Last Command
0
Response Code
DS61145L-page 34
 2007-2013 Microchip Technology Inc.