Hitachi H8/3048 Hardware Manual page 621

Single-chip microcomputer
Table of Contents

Advertisement

Example of Emulation of Real-Time Flash-Memory Update
www.DataSheet4U.com
H'01F000
H'01F9FF
H'01FA00
Small-block
H'01FBFF
area (SB5)
H'01FDFF
H'01FE00
H'01FFFF
Notes: 1. When part of RAM (H'FFF000 to H'FFF1FF) is overlapped onto a small-block area in flash
memory, the overlapped flash memory area cannot be accessed. Access is enabled when
the overlap is cleared.
2. When the RAMS bit is set to 1, all flash memory blocks are write-protected and erase-
protected, regardless of the values of bits RAM2 to RAM0. In this state, no transition to
program or erase mode will take place if the P or E bit is set in the flash memory control
register (FLMCR). To actually program or erase a flash memory area, the RAMS bit must
be cleared to 0.
Flash memory
address space
Overlapped by RAM
H'FFEF10
H'FFF000
H'FFF1FF
H'FFF200
On-chip RAM
area
H'FFFF0F
Figure 18-20 Example of RAM Overlap
612
Procedure
1. Set the RAME bit to 1 in SYSCR
to enable the on-chip RAM.
2. Overlap part of RAM (H'FFF000 to
H'FFF1FF) onto the area requiring
real-time update (SB5).
(Set RAMCR bits 3 to 0 to 1101.)
3. Perform real-time updates in the
overlapping RAM.
4. After finalization of the update
data, clear the RAM overlap (by
clearing the RAMS bit).
5. Program the data written in RAM
addresses H'FFF000 to H'FFF1FF
into the flash memory area.

Advertisement

Table of Contents
loading

Table of Contents