Virtual Flash Emulation Area - Renesas M32R/ECU Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

6

6.6.1 Virtual Flash Emulation Area

The following shows the internal flash memory areas in which the Virtual Flash Emulation Function is useful.
Using the Virtual Flash S Bank Register (FESBANK0–FESBANK7), select one among all S banks of internal
flash memory that are divided in 4-Kbyte units (by setting the eight start address bits A12–A19 of the desired S
bank in the Virtual Flash S Bank Register SBANKAD bits). Then set the Virtual Flash S Bank Register's flash
emulation enable bit (MODENS) to "1", and the selected S bank area will be replaced with 4-Kbyte blocks of the
internal RAM beginning with the address H'0080 8000, up to eight such blocks in all.
Notes: • If the same bank area is set in two or more Virtual Flash S Bank Registers (FESBANK0–
FESBANK7) and each register's flash emulation enable bit (MODENS) is set to "1" (enabled), the
bank is assigned the corresponding internal RAM area (4-Kbyte) according to the priority of Virtual
Flash S Bank Registers given below.
FESBANK0 > FESBANK1 > FESBANK2 > FESBANK3 > FESBANK4 > FESBANK5 >
FESBANK6 > FESBANK7
• During virtual flash emulation mode, RAM can be accessed for read and write from both the
internal RAM area and the flash emulation areas set in the internal flash memory.
• Before reading any flash emulation area after setting the Flash Control Register 1 (FCNT1) flash
emulation mode bit (FEMMOD) to "1", be sure to check that the flash emulation mode bit
(FEMMOD) has been set to "1" by reading it once.
• Before reading any flash emulation area after setting the Virtual Flash S Bank Register
(FESBANK0–FESBANK7) flash emulation enable bit (MODENS) and bank address bits
(SBANKAD), be sure to check that those MODENS and SBANKAD bits have been set to the
intended values by reading them once.
6.6 Virtual Flash Emulation Function
6-31
INTERNAL MEMORY
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents