Example of Emulation of Real-Time Flash-Memory Update
H'0000
Overlapped RAM
H'007F
H'0080
H'00FF
H'0100
Small-block
area (SB1)
Flash memory
address space
H'7FFF
H'FB80
Overlapped
RAM
H'FC80
H'FCFF
On-chip
RAM area
H'FF7F
Procedure
1. Overlap part of RAM (H'FC80 to H'FCFF) onto the area requiring real-time update (SB1).
(Set WSCR bits 7 and 6 to 01.)
2. Perform real-time updates in the overlapping RAM.
3. After finalization of the update data, clear the RAM overlap (by clearing the RAMS and
RAM0 bits).
4. Read the data written in RAM addresses H'FC80 to H'FCFF out externally, then program
the flash memory area, using this data as part of the program data.
Figure 19.12 Example of RAM Overlap
414