English
Language : 

PIC24F04KA200 Datasheet, PDF (14/26 Pages) Microchip Technology – Flash Programming Specifications
PIC24FXXKA2XX
TABLE 3-7: SERIAL INSTRUCTION EXECUTION FOR WRITING CONFIGURATION REGISTERS
Command
(Binary)
Data
(Hex)
Command
(Binary)
Step 1: Exit the Reset vector.
0000
0000
0000
000000
040200
000000
NOP
GOTO
NOP
0x200
Step 2: Initialize the Write Pointer (W7) for the TBLWT instruction.
0000
200007
MOV
#0x0000, W7
Step 3: Set the NVMCON register to program Configuration registers.
0000
0000
24004A
MOV
883B0A
MOV
Step 4: Initialize the TBLPAG register.
#0x4004, W10
W10, NVMCON
0000
0000
200F80
MOV
880190
MOV
#0xF8, W6
W0, TBLPAG
Step 5: Load the Configuration register data to W6.
0000
2xxxx6
MOV
#<FBS_VALUE>, W6
Step 6: Write the Configuration register data to the write latch and increment the Write Pointer.
0000
0000
0000
0000
000000
BB1B86
000000
000000
Step 7: Initiate the write cycle.
NOP
TBLWTL
NOP
NOP
W6, [W7++]
0000
0000
0000
A8E761
000000
000000
BSET
NOP
NOP
NVMCON, #WR
Step 8: Repeat this step to poll the WR bit (bit 15 of NVMCON) until it is cleared by the hardware.
0000
0000
0000
0000
0000
0001
0000
040200
000000
803B02
883C22
000000
<VISI>
000000
GOTO
0x200
NOP
MOV
NVMCON, W2
MOV
W2, VISI
NOP
Clock out contents of the VISI register.
NOP
Step 9: Reset device internal PC.
0000
0000
040200
000000
GOTO
NOP
0x200
Step 10: Repeat Steps 5 through 9 to write other fuses, Load W6 with their respective values and W7 with their
respective addresses.
DS39991A-page 14
 2010 Microchip Technology Inc.