RL78/G1P
CHAPTER 3 CPU ARCHITECTURE
R01UH0895EJ0100 Rev.1.00
26
Nov 29, 2019
Figure 3-1. Memory Map
Special function registers (SFR)
256 bytes
RAM
Notes 1, 2, 4
1.5 KB
General-purpose registers
32 bytes
Code flash memory
16 KB
Extended special function registers
(2nd SFR)
2 KB
Mirror
8 KB
Program
memory
space
Data memory
space
Reserved
Data flash memory
2 KB
Reserved
Vector table area
128 bytes
CALLT table area
64 bytes
Option byte area
Note 3
4 bytes
Program area
On-chip debug security
ID setting area
Note 3
10 bytes
Reserved
Reserved
0 0 0 0 0 H
0 0 0 7 F H
0 0 0 8 0 H
0 0 0 B F H
0 0 0 C 0 H
0 0 0 C 3 H
0 0 0 C 4 H
0 0 0 C DH
0 0 0 C E H
0 3 F F F H
00000 H
EFFFFH
F0000H
F0FFFH
F1000H
F17FF H
F1800H
F1FFFH
F 2000H
F3FFFH
F 4000H
FF8FFH
FF900H
FFEDFH
FFEE0H
FFEFFH
FFF00H
FFFFF H
03FFF H
04000 H
F07FF H
F0800H
Notes 1.
Do not allocate the stack area, data buffers for use by the flash library, arguments of library functions,
branch destinations in the processing of vectored interrupts, or destinations or sources for DTC transfer to
the area from FFE20H to FFEDFH when performing self-programming or rewriting of the data flash memory.
2.
Instructions can be executed from the RAM area excluding the general-purpose register area.
3.
Set the option bytes to 000C0H to 000C3H, and the on-chip debug security IDs to 000C4H to 000CDH.
4.
The flash libraries use the parts of the RAM area referred to as self RAM in self-programming or rewriting of
the data flash memory. For the sizes of the RAM areas used by the flash libraries, see “
ROM, RAM
capacities
” in
1.1 Features
.
Caution While RAM parity error resets are enabled (RPERDIS = 0), be sure to initialize RAM areas where data
access is to proceed and the RAM area + 10 bytes when instructions are fetched from RAM areas,
respectively.
Reset signal generation sets RAM parity error resets to enabled (RPERDIS = 0). For details, see 20.5
RAM parity error detection function.