Information
© 2010 Microchip Technology Inc. DS70152H-page 27
dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
4.2.8 PROGC COMMAND
The PROGC command instructs the programming
executive to program a single Configuration register,
located at the specified memory address.
After the specified data word has been programmed to
code memory, the programming executive verifies the
programmed data against the data in the command.
Expected Response (2 words):
0x1400
0x0002
4.2.9 PROGP COMMAND
The PROGP command instructs the programming
executive to program one row of code memory
(64 instruction words) to the specified memory
address. Programming begins with the row address
specified in the command. The destination address
should be a multiple of 0x80.
The data to program the memory, located in command
words D_1 through D_96, must be arranged using the
packed instruction word format illustrated in Figure 4-4.
After all data has been programmed to code memory,
the programming executive verifies the programmed
data against the data in the command.
Expected Response (2 words):
0x1500
0x0002
15 12 11 8 7 0
Opcode Length
Reserved Addr_MSB
Addr_LS
Data
Field Description
Opcode 0x4
Length 0x4
Reserved 0x0
Addr_MSB MSB of 24-bit destination address.
Addr_LS Least Significant 16 bits of 24-bit
destination address.
Data 8-bit data word.
15 12 11 8 7 0
Opcode Length
Reserved Addr_MSB
Addr_LS
D_1
D_2
...
D_N
Field Description
Opcode 0x5
Length 0x63
Reserved 0x0
Addr_MSB MSB of 24-bit destination address.
Addr_LS Least Significant 16 bits of 24-bit
destination address.
D_1 16-bit data word 1.
D_2 16-bit data word 2.
... 16-bit data word 3 through 95.
D_96 16-bit data word 96.
Note: Refer to Table 2 - 2 for code memory size
information.