dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
TABLE 5-5:
SERIAL INSTRUCTION EXECUTION FOR WRITING CODE MEMORY (CONTINUED)
Command
(Binary)
Data
(Hex)
Description
-
-
Externally time ‘P13’ msec (see Section TABLE 8-1: “AC/DC
Characteristics and Timing Requirements”) to allow suffi-
cient time for the Row Program operation to complete.
0000
0000
0000
0001
807600
887840
000000
<VISI>
MOV
MOV
NOP
NVMCON, W0
W0, VISI
Clock out contents of VISI register. Repeat until the WR bit
is clear.
Step 9: Reset device internal PC.
0000
0000
040200
000000
GOTO
NOP
0x200
Step 10: Repeat steps 3-9 until all code memory is programmed.
FIGURE 5-7:
PROGRAM CODE MEMORY FLOW
Start
N = 1
LoopCount = 0
Configure
Device for
Writes
Load 2 Bytes
to Write
Buffer at <Addr>
N = N + 1
All
bytes
No
written?
Yes
N = 1
LoopCount =
LoopCount + 1
Start Write Sequence
and Poll for WR bit
to be cleared
All
locations
done?
No
Yes
Done
© 2007 Microchip Technology Inc.
Preliminary
DS70152D-page 61