dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
TABLE 5-5:
Command
(Binary)
-
SERIAL INSTRUCTION EXECUTION FOR WRITING CODE MEMORY (CONTINUED)
Data
(Hex)
-
Description
Externally time 鈥楶13鈥?msec (see
Section TABLE 8-1: 鈥淎C/DC
Characteristics and Timing Requirements鈥?
to allow suffi-
cient time for the Row Program operation to complete.
MOV
NVMCON, W0
MOV
W0, VISI
NOP
Clock out contents of VISI register. Repeat until the WR bit
is clear.
GOTO
NOP
0x200
0000
0000
0000
0001
807600
887840
000000
<VISI>
Step 9:
Reset device internal PC.
0000
0000
040200
000000
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
N=N+1
Load 2 Bytes
to Write
Buffer at <Addr>
No
All
bytes
written?
Yes
Start Write Sequence
and Poll for WR bit
to be cleared
N=1
LoopCount =
LoopCount + 1
No
All
locations
done?
Yes
Done
漏
2007 Microchip Technology Inc.
Preliminary
DS70152D-page 61