Datasheet
Section 20 Flash Memory (F-ZTAT Version)
Rev. 6.00 Mar. 18, 2010 Page 717 of 982
REJ09B0054-0600
The differences between boot mode and user program mode are shown in table 20.1.
Figure 20.3 shows the operation flow for boot mode and figure 20.4 shows that for user program
mode.
Boot mode
On-board programming mode
User
program mode
User mode
Reset state
Programmer
mode
RES = 0
FWE = 1 FWE = 0
*
1
Notes: Only make a transition between user mode and user program mode when the CPU is
not accessing the flash memory.
1. RAM emulation possible
2. In the H8S/2258, H8S/2239, H8S/2238B, and H8S/2238R, MD0 = 0, MD1 = 0, MD2 = 0,
P14 = 0, P16 = 0, PF0 = 1.
3. In the H8S/2227 Group, MD0 = 0, MD1 = 0, MD2 = 0, P14 = 0, P16 = 0, PF0 = 1, PF3 = 1.
RES = 0
MD1 = 1,
MD2 = 0,
FWE = 1
RES = 0
RES = 0
MD1 = 1,
MD2 = 1,
FWE = 0
*
1
MD1 = 1,
MD2 = 1,
FWE = 1
*
2
*
3
Figure 20.2 Flash Memory State Transitions
Table 20.1 Differences between Boot Mode and User Program Mode
Boot Mode User Program Mode
Total erase Yes Yes
Block erase No Yes
Programming control program* Program/program-verify Program/program-verify/erase/
erase-verify/emulation
Note: * To be provided by the user, in accordance with the recommended algorithm.