Hitachi H8/3062 Hardware Manual page 524

Single-chip microcomputer
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

17.7
Flash Memory Emulation in RAM
As flash memory programming and erasing takes time, it may be difficult to carry out tuning by
writing parameters and other data in real time. In this case, real-time programming of flash
memory can be emulated by overlapping part of RAM (H'FFF000–H'FFF3FF) onto a small block
area in flash memory. This RAM area change is executed by means of bits 3 to 1 in the RAM
control register (RAMCR). After the RAM area change, access is possible both from the area
overlapped onto flash memory and from the original area (H'FFF000–H'FFF3FF). For details of
RAMCR and the RAM area setting method, see section 17.3.3, RAM Control Register (RAMCR).
Example of Emulation of Real-Time Flash Memory Programming: In the following example,
RAM area H'FFF000–H'FFF3FF is overlapped onto flash memory area EB2 (H'000800–
H'000BFF).
H'000000
Block area
H'000800
EB2
area
H'000BFF
H'000FFF
Note: * When part of RAM (H'FFF000–H'FFF3FF) is overlapped onto a flash memory small block area, the flash
memory in the overlapped area cannot be accessed. It can be accessed when the overlapping is
cleared.
Flash memory
space
Overlapping ram
(Mapping RAM
*
H'FFEF20
On-chip RAM
H'FFEFFF
H'FFF000
H'FFF3FF
H'FFF400
H'FFFF1F
Figure 17.14 Example of RAM Overlap Operation
Procedure:
1. Part of RAM
2.
area)
3. The programmed data is checked,
4. The data written in RAM area
area
(Actual RAM
area)
(H'FFF000–H'FFF3FF) is
overlapped onto the area (EB2)
requiring real-time programming.
(RAMCR bits 3–1 are set to 1, 1, 0,
and the flash memory area to be
overlapped (EB2) is selected.)
Real-time programming is
performed using the overlapping
RAM.
then RAM overlapping is cleared.
(RAMS bit is cleared.)
H'FFF000–H'FFF3FF is written to
flash memory space.
507

Advertisement

Table of Contents
loading

Table of Contents