Datasheet
Section 19 Flash Memory (0.35-μm F-ZTAT Version)
Rev.6.00 Mar. 18, 2009 Page 691 of 980
REJ09B0050-0600
19.2 Mode Transitions
When the mode pins are set in the reset state and a reset-start is executed, this LSI enters an
operating mode as shown in figure 19.2. In user mode, flash memory can be read but not
programmed or erased.
The boot, user program and programmer modes are provided as modes to write and erase the flash
memory.
The differences between boot mode and user program mode are shown in table 19.1. Figure 19.3
shows boot mode. Figure 19.4 shows user program mode.
Boot mode
On-board programming mode
User
program mode
User mode
(on-chip ROM
enabled)
Reset state
Programmer
mode
RES = 0
SWE = 1
SWE = 0
Note: Only make a transition between user mode and user program mode when the CPU is
not accessing the flash memory.
RES = 0
RES
= 0
RES
= 0
MD2 = 1
MD0 = 1, MD1 = 1, MD2 = 0
MD0 = 0, MD1 = 0,
MD2 = 0, P50 = 0,
P51 = 0, P52 = 1
Figure 19.2 Flash Memory State Transitions