Datasheet

Rev.6.00 Oct.28.2004 page 579 of 1016
REJ09B0138-0600H
Flash Memory Emulation in RAM
Reading Overlap Data in User Mode and User Program Mode
Emulation should be performed in user mode or user program mode. When the emulation block set in RAMER is
accessed while the emulation function is being executed, data written in the overlap RAM is read.
Application program
Execution state
Flash memory
Emulation block
RAM
SCI
Overlap RAM
(emulation is performed
on data written in RAM)
Figure 19-11 Reading Overlap Data in User Mode and User Program Mode
Writing Overlap Data in User Program Mode
When overlap RAM data is confirmed, the RAMS bit is cleared, RAM overlap is released, and writes should actually
be performed to the flash memory.
When the programming control program is transferred to RAM, ensure that the transfer destination and the overlap
RAM do not overlap, as this will cause data in the overlap RAM to be rewritten.
Application program
Flash memory
RAM
SCI
Overlap RAM
(programming data)
Programming data
Programming control
program execution state
Figure 19-12 Writing Overlap Data in User Program Mode