
dsPIC30F Flash Programming Specification
DS70102K-page 44
2010 Microchip Technology Inc.
Step 6: Write the Configuration register data to the write latch and increment the write pointer.
0000
BB1B96
000000
TBLWTL W6, [W7++]
NOP
Step 7: Unlock the NVMCON for programming.
0000
200558
883B38
200AA9
883B39
MOV
#0x55, W8
MOV
W8, NVMKEY
MOV
#0xAA, W9
MOV
W9, NVMKEY
Step 8: Initiate the write cycle.
0000
—
0000
A8E761
000000
—
000000
A9E761
000000
BSET NVMCON, #WR
NOP
NOP
BCLR NVMCON, #WR
NOP
Step 9: Reset device internal PC.
0000
040100
000000
GOTO 0x100
NOP
Step 10: Repeat steps 3-9 until all 7 Configuration registers are cleared.
TABLE 11-7:
SERIAL INSTRUCTION EXECUTION FOR WRITING CONFIGURATION
REGISTERS (CONTINUED)
Command
(Binary)
Data
(Hexadecimal)
Description