dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
4.2.8
15
PROGCCOMMAND
12 11 8 7
4.2.9
15
PROGPCOMMAND
12 11 8 7
0
0
Opcode
Length
Addr_MSB
Opcode
Length
Addr_MSB
Reserved
Reserved
Addr_LS
Data
Addr_LS
D_1
D_2
...
Field
Description
D_N
Opcode
Length
0x4
0x4
Field
Description
Reserved
0x0
Addr_MSB MSB of 24-bit destination address
Opcode
Length
0x5
Addr_LS
Data
Least Significant 16 bits of 24-bit
destination address
0x63
Reserved
Addr_MSB MSB of 24-bit destination address
0x0
8-bit data word
The PROGCcommand instructs the programming exec-
utive to program a single Configuration register, located
at the specified memory address.
Addr_LS
Least Significant 16 bits of 24-bit
destination address
D_1
D_2
...
16-bit data word 1
After the specified data word has been programmed to
code memory, the programming executive verifies the
programmed data against the data in the command.
16-bit data word 2
16-bit data word 3 through 95
16-bit data word 96
D_96
Expected Response (2 words):
The PROGPcommand instructs the programming exec-
utive 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.
0x1400
0x0002
The data to program to memory, located in command
words D_1 through D_96, must be arranged using the
packed instruction word format shown 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
Note:
Refer to Table 2-2 for code memory size
information.
© 2007 Microchip Technology Inc.
Preliminary
DS70152D-page 51