Datasheet
Section 19 Flash Memory (F-ZTAT Version)
Rev. 3.00 Mar 17, 2006 page 793 of 926
REJ09B0283-0300
Ye s
No
Program/erase?
Transfer user program/erase control
program to RAM
Reset-start
Branch to user program/erase control
program in RAM
Execute user program/erase control
program (flash memory programming)
Branch to flash memory application
program
Branch to flash memory application
program
FWE = high
*
Clear FWE
*
Note: * Not available in H8S/2678R Group.
Figure 19.7 Programming/Erasing Flowchart Example in User Program Mode
19.7 Flash Memory Emulation in RAM
Making a setting in the RAM emulation register (RAMER) enables RAM to be overlapped onto
the part of flash memory area so that data to be programmed to flash memory can be emulated in
the on-chip RAM in real time. Emulation can be performed in user mode or user program mode.
Figure 19.8 shows an example of emulation of real-time flash memory programming.
1. Set RAMER to overlap RAM onto the area for which real-time programming is required.
2. Emulation is performed using the overlapping RAM.