Programming/Erasing In User Program Mode; Figure 19.9 Flowchart For Flash Memory Emulation In Ram - Hitachi H8S/2215 Series Hardware Manual

Hitachi single-chip microcomputer
Table of Contents

Advertisement

19.7
Flash Memory Emulation in RAM
Making a setting in the RAM emulation register (RAMER) enables part of RAM to be overlapped
onto the flash memory area so that data to be written to flash memory can be emulated in RAM in
real time. Emulation can be performed in user mode or user program mode. Figure 19.9 shows an
example of emulation of real-time flash memory programming.
1. Set RAMER to overlap part of RAM onto the area for which real-time programming is
required.
2. Emulation is performed using the overlapping RAM.
3. After the program data has been confirmed, the RAMS bit is cleared, thus releasing RAM
overlap.
4. The data written in the overlapping RAM is written into the flash memory space (EB0).

Figure 19.9 Flowchart for Flash Memory Emulation in RAM

Example in which flash memory block area EB0 is overlapped is shown in figure 19.10.
1. The RAM area to be overlapped is fixed at a 4-kbyte area in the range of H'FFD000 to
H'FFDFFF.
2. The flash memory area to overlap is selected by RAMER from a 4-kbyte area among one of
the EB0 to EB7 blocks.
Start of emulation program
Set RAMER
Write tuning data to overlap
RAM
Execute application program
No
Tuning OK?
Yes
Clear RAMER
Write to flash memory
emulation block
End of emulation program
Rev. 3.0, 10/02, page 581 of 686

Advertisement

Table of Contents
loading

Table of Contents