17.13.3 Flash Memory Operating Modes
Mode Transitions: When the mode pins are set in the reset state and a reset-start is executed, the
chip enters one of the operating modes shown in figure 17-34. In user mode, flash memory can be
read but not programmed or erased.
Flash memory can be programmed and erased in boot mode, user program mode, and PROM
mode.
User mode
(on-chip ROM
enabled)
SWE = 0
SWE = 1
program mode
On-board programming mode
Notes: Only make a transition between user mode and user program mode when the CPU is
not accessing the flash memory.
* MD0 = 0, MD1 = 0, MD2 = 0, PF2 = 1, PF1 = 0, PF0 = 0
Rev. 5.00, 12/03, page 614 of 1088
MD1 = 1,
MD2 = 1
RES = 0
RES = 0
User
Figure 17-34 Flash Memory Mode Transitions
Reset state
MD1 = 1,
MD2 = 0
RES = 0
Boot mode
RES = 0
*
Programmer mode