![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_188.png)
6
INTERNAL MEMORY
6-46
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
6.7.1 Virtual Flash Emulation Area
Figure 6.7.1 and Figure 6.7.2 show the internal flash memory areas in which the Virtual Flash Emulation Function
is applicable.
Using the Virtual Flash L Bank Register (M32185F4: FELBANK0 to FELBANK3, M32186F8: FELBANK0 to
FELBANK 7), select one among all L banks of internal flash memory that are divided in 8-Kbyte units (by setting
the eight start address bits A11–A18 of the desired L bank in the Virtual Flash L Bank Register LBANKAD bits).
Then set the Virtual Flash L Bank Register’s flash emulation L enable bit (MODENL) to "1," and the selected L
bank area will be replaced with 8-Kbyte blocks of the internal RAM (maximum for the M32185F4 is 4 blocks, for
M32186 is 8 blocks).
Notes: If the same bank area is set in two or more Virtual Flash L Bank Registers and accessed while
each register’s flash emulation enable bit is enabled, the data will be destroyed. Therefore, do not
set the same bank area in two or more registers.
During virtual flash emulation mode, internal RAM can be accessed for read and write from the
internal RAM area and the virtual flash set area.
Before reading any virtual flash set area after setting the Flash Control Register 1 virtual flash
emulation mode bit to "1," be sure to check that the virtual flash emulation mode bit has been set
to "1" by reading it once.
Before reading any virtual flash set area after setting the Virtual Flash L Bank Register virtual flash
emulation L enable bit and L bank address bits, be sure to check that the virtual flash emulation L
enable bit and L bank address bits have been set to the intended values by reading them once.
6.7 Virtual Flash Emulation Function
Figure 6.7.3 Virtual Flash Emulation Area divided in 8-Kbyte units for the M32185F4
H'0000 0000
H'0000 2000
H'0000 4000
H'0007 E000
H'0007 C000
<Internal flash>
L bank 0
(8 Kbytes)
L bank 1
(8 Kbytes)
L bank 2
(8 Kbytes)
L bank 62
(8 Kbytes)
L bank 63
(8 Kbytes)
<Internal RAM>
Notes: If the same bank area is set in two or more Virtual Flash L Bank Registers and accessed
while each register’s flash emulation enable bit is enabled, the data will be destroyed.
Therefore, do not set the same bank area in two or more registers.
If any 8-Kbyte area (L bank) specified by the Virtual Flash L Bank Registers 0 to 3 is accessed,
its corresponding internal RAM area is accessed. During virtual flash emulation mode, internal RAM can be accessed
for read and write from both the internal RAM area and the virtual flash set area.
H'0080 4000
H'0080 6000
H'0080 8000
H'0080 A000
8 Kbytes