鈥?/div>
Read Memory
Erase Memory
Program Memory
Blank Check
Read Executive Firmware Revision
Figure 3-1 shows the high-level overview of the
programming process. After entering Enhanced ICSP
mode, the programming executive is verified. Next, the
device is erased. Then, the code memory is pro-
grammed, followed by the nonvolatile device Configu-
ration registers. Code memory (including the
Configuration registers) is then verified to ensure that
programming was successful.
After the programming executive has been verified
in memory (or loaded if not present), the dsPIC33F/
PIC24H Programming Specification can be pro-
grammed using the command set shown in Table 3-1.
FIGURE 3-1:
HIGH-LEVEL ENHANCED
ICSP鈩?PROGRAMMING
FLOW
Start
The programming executive performs the low-level
tasks required for erasing, programming and verifying
a device. This allows the programmer to program the
device by issuing the appropriate commands and data.
Table 3-1 summarizes the commands. A detailed
description for each command is provided in
Section 4.2 鈥淧rogramming Executive Commands鈥?
Enter Enhanced ICSP鈩?/div>
Perform Bulk
Erase
TABLE 3-1:
Command
SCHECK
READC
READP
PROGC
PROGP
PROGW
QBLANK
QVER
COMMAND SET SUMMARY
Description
Sanity check
Read Configuration registers or Device
ID registers
Read code memory
Program a Configuration register and
verify
Program one row of code memory and
verify
Program one word of code memory
and verify
Query if the code memory is blank
Query the software version
Done
Exit Enhanced ICSP
Program Configuration Bits
Verify Program
Program Memory
Verify Configuration Bits
The programming executive uses the device鈥檚 data
RAM for variable storage and program execution. After
the programming executive has run, no assumptions
should be made about the contents of data RAM.
漏
2007 Microchip Technology Inc.
Preliminary
DS70152D-page 33
prev
next