![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1168AGF-GAS-AX_datasheet_99857/UPD78F1168AGF-GAS-AX_66.png)
CHAPTER 3 CPU ARCHITECTURE
User’s Manual U17894EJ9V0UD
64
3.1.2 Mirror area
The
μPD78F1162 and 78F1162A mirror the data flash area of 00000H to 0FFFFH, to F0000H to FFFFFH.
The
μPD78F1163, 78F1163A, 78F1164, 78F1164A, 78F1165, 78F1165A, 78F1166, 78F1166A, 78F1167,
78F1167A, 78F1168, and 78F1168A mirror the data flash area of 00000H to 0FFFFH or 10000H to 1FFFFH, to
F0000H to FFFFFH (the data flash area to be mirrored is set by the processor mode control register (PMC)).
By reading data from F0000H to FFFFFH, an instruction that does not have the ES registers as an operand can be
used, and thus the contents of the data flash can be read with the shorter code. However, the data 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 1
μPD78F1162, 78F1162A
Example 2
μPD78F1166, 78F1166A
(Flash memory: 64 KB, RAM: 4 KB)
(Flash memory: 256 KB, RAM: 12 KB)
Setting MAA = 0
Setting MAA = 1
Flash memory
01000H
00FFFH
00000H
0EF00H
0EEFFH
10000H
0FFFFH
Mirror
EE000H
EDFFFH
F0000H
EFFFFH
F0800H
F07FFH
F1000H
F0FFFH
FEF00H
FEEFFH
FFEE0H
FFEDFH
FFF00H
FFEFFH
FFFFFH
Special-function register (SFR)
256 bytes
General-purpose register
32 bytes
RAM
4 KB
Flash memory
(same data as 01000H to 0EEFFH)
Special-function register (2nd SFR)
2 KB
External expansion area
888 KB max.
Reserved
Special-function register (SFR)
256 bytes
FFFFFH
General-purpose register
32 bytes
FFEE0H
FFEDFH
FFF00H
FFEFFH
RAM
12 KB
FCF00H
FCEFFH
Flash memory
(same data as 11000H to 1CEFFH)
F0800H
F07FFH
F1000H
F0FFFH
Reserved
Special-function register (2nd SFR)
2 KB
EE000H
EDFFFH
F0000H
EFFFFH
Reserved
Mirror
External expansion area
696 KB max.
40000H
3FFFFH
00000H
1CF00H
1CEFFH
11000H
10FFFH
Flash memory
Remark
MAA: Bit 0 of the processor mode control register (PMC)
PMC register is described below.
For example, 15432H is mirrored to
F5432H. Data can therefore be read by
MOV A, !5432H, instead of MOV ES,
#01H and MOV A, ES:!5432H.
For example, 02345H is mirrored to
F2345H. Data can therefore be read by
MOV A, !2345H, instead of MOV ES,
#00H and MOV A, ES:!2345H.