Virtual Flash Emulation Area - Mitsubishi Electric M32R Series User Manual

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

Advertisement

6

6.7.1 Virtual Flash Emulation Area

The following shows the areas for which the Virtual Flash Emulation Function is effective.
The Virtual Flash L Bank Registers (FELBANK0 to FELBANK3 for the M32170F6, FELBANK0 to
FELBANK2 for the M32170F4 and M32170F3) allow one among all L banks of flash memory
divided in 8 Kbytes each to be selected by setting the seven bits A12-A18 of the start address of the
desired L bank in the Virtual Flash L Bank Register LBANKAD bits. Then, by setting the Virtual
Flash L Bank Register MODENL0-3 bits (for the M32170F6) or MODENL0-2 bits (for the
M32170F4 and M32170F3) to 1, the selected L bank area can be replaced with 8 Kbyte blocks of
internal RAM from the beginning of the internal RAM (up to four blocks for the M32170F6, or up to
three blocks for the M32170F4 and M32170F3).
Similarly, the Virtual Flash S Bank Registers (FESBANK0, FESBANK1) allow one among all S
banks of flash memory divided in 4 Kbytes each to be selected by setting the eight bits A12-A19 of
the start address of the desired S bank in the Virtual Flash S Bank Register SBANKAD bits. Then,
by setting the Virtual Flash S Bank Register MODENS0-1 bits to 1, the selected S bank area can be
replaced with 4 Kbyte blocks of internal RAM in up to two blocks starting from H'0080 C000 for the
M32170F6 or H'0080 A000 for the M32170F4 and M32170F3.
For the M32170F6, you can choose four 8-Kbyte L banks and two 4-Kbyte S banks, for a total of six
banks (maximum). For the M32170F4 and M32170F3, you can choose three 8-Kbyte L banks and
two 4-Kbyte S banks, for a total of five banks (maximum).
Note 1: If after setting the same bank area in multiple Virtual Flash Bank Registers, you enable the
Virtual Flash Emulation Enable bit, the internal RAM area (8 Kbyte or 4 Kbyte) selected
according to the priority of Virtual Flash Bank Registers shown below is assigned.
• M32170F6
FELBANK0 > FELBANK1 > FELBANK2 > FELBANK3 > FESBANK0 > FESBANK1
• M32170F4 and M32170F3
FELBANK0 > FELBANK1 > FELBANK2 > FESBANK0 > FESBANK1
Note 2: During Virtual Flash Emulation mode, RAM can be read or written to from both internal
RAM area and virtual flash setup area.
6.7 Virtual Flash Emulation Function
6-45
INTERNAL MEMORY
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents