Datasheet

RL78/L12 CHAPTER 3 CPU ARCHITECTURE
R01UH0330EJ0200 Rev.2.00 60
Dec 13, 2013
3.1.2 Mirror area
The RL78/L12 mirrors the code flash area of 02000H to 07FFFH, to F2000H to F7FFFH (the code flash area to be
mirrored is set by the processor mode control register (PMC)).
By reading data from F2000H to F7FFFH, an instruction that does not have the ES register as an operand can be used,
and thus the contents of the code flash can be read with the shorter code. However, the code flash area is not mirrored to
the SFR, extended SFR, RAM, and use prohibited areas.
See 3.1 Memory Space for the mirror area of each product.
The mirror area can only be read and no instruction can be fetched from this area.
The following show examples.
Example R5F10RxC (x = B, F, G, J, L) (Flash memory: 32 KB, RAM: 1.5 KB)
Code flash memory
Code flash memory
Code flash memory
02000H
01FFFH
00000H
06900H
068FFH
08000H
07FFFH
Mirror
F0000H
EFFFFH
F0800H
F07FFH
F1000H
F0FFFH
FF900H
FF8FFH
F8000H
F7FFFH
FFEE0H
FFEDFH
FFF00H
FFEFFH
FFFFFH
Special-function register (SFR)
256 bytes
General-purpose register
32 bytes
RAM
1.5 KB
Mirror
(same data as 02000H to 068FFH)
Special-function register (2nd SFR)
2 KB
Reserved
Reserved
Reserved
F2000H
F1FFFH
Data flash memory
F1800H
F17FFH
Reserved
The PMC register is described below.
For example, 06789H is mirrored to
F6789H. Data can therefore be read by
MOV A, !6789H, instead of MOV ES,
#00H and MOV A, ES:!6789H.