Virtual Flash Emulation Function - Mitsubishi Electric M32R Series User Manual

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

Advertisement

6

6.7 Virtual Flash Emulation Function

The 32170 has a special function, called the "Virtual Flash Emulation Function," which allows the
internal RAM to be mapped in blocks of 8 Kbytes from the beginning (up to four blocks for the
M32170F6, up to three blocks for the M32170F4 and M32170F3) into the internal flash memory
area divided in units of 8 Kbytes (L banks). Similarly, this function allows the internal RAM to be
mapped in blocks of 4 Kbytes, for the M32170F6 (up to two blocks) starting from the RAM address
H'0080 C000, for the M32170F4 and M32170F3 (up to two blocks) starting from the RAM address
H'0080 A000 into the internal flash memory area divided in units of 4 Kbytes (S banks).
When this function is used, the data placed in 8 Kbyte or 4 Kbyte blocks of internal RAM can be
moved to or from the L or S banks in the flash memory that are specified by the Virtual Flash Bank
Register. For applications that require modifying data during program operation, this enables
dynamic modification of data using 8 Kbytes or 4 Kbytes of RAM areas. The RAM blocks allocated
for virtual flash emulation can be read or written to from both internal RAM and internal flash
memory areas. This function, when used in combination with the Real-Time Debugger (RTD),
permits you to look up or rewrite from outside the data tables created in the internal flash memory,
thus facilitating data table tuning from an external device.
Before accessing the internal flash memory for programming, be sure to terminate this virtual flash
emulation mode.
Figure 6.7.1 Internal RAM Bank Configuration of the M32170F6
H'0080 4000
RAM bank L block 0
(FELBANK0)
H'0080 6000
RAM bank L block 1
(FELBANK1)
H'0080 8000
RAM bank L block 2
(FELBANK2)
H'0080 A000
RAM bank L block 3
(FELBANK3)
RAM bank S block 0
H'0080 C000
(FESBANK0)
H'0080 D000
RAM bank S block 1
(FESBANK1)
6-43
6.7 Virtual Flash Emulation Function
8 Kbytes
8 Kbytes
8 Kbytes
8 Kbytes
4 Kbytes
4 Kbytes
INTERNAL MEMORY
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents