R8C/3GA Group
3. Memory
REJ03B0235-0110 Rev.1.10 Sep. 10, 2009
3.
Memory
3.1
R8C/3GA Group
addresses 00000h to FFFFFh. The internal ROM (program ROM) is allocated lower addresses, beginning with
address 0FFFFh. For example, a 32-Kbyte internal ROM area is allocated addresses 08000h to 0FFFFh.
The fixed interrupt vector table is allocated addresses 0FFDCh to 0FFFFh. The starting address of each interrupt
routine is stored here.
The internal ROM (data flash) is allocated addresses 03000h to 03FFFh.
The internal RAM is allocated higher addresses, beginning with address 00400h. For example, a 2.5-Kbyte internal
RAM area is allocated addresses 00400h to 00DFFh. The internal RAM is used not only for data storage but also as
a stack area when a subroutine is called or when an interrupt request is acknowledged.
Special function registers (SFRs) are allocated addresses 00000h to 002FFh and 02C00h to 02FFFh. Peripheral
function control registers are allocated here. All unallocated spaces within the SFRs are reserved and cannot be
accessed by users.
Figure 3.1
Memory Map of R8C/3GA Group
0FFFFh
0FFDCh
Notes:
1. Data flash indicates block A (1 Kbyte), block B (1 Kbyte), block C (1 Kbyte) and block D (1 Kbyte).
2. The blank areas are reserved and cannot be accessed by users.
FFFFFh
0FFFFh
0YYYYh
0XXXXh
00400h
002FFh
00000h
Internal ROM
(program ROM)
Internal RAM
SFR
(Refer to 4. Special
Function Registers
(SFRs))
02FFFh
02C00h
SFR
(Refer to 4. Special Function
Registers (SFRs))
ZZZZZh
Internal ROM
(program ROM)
03FFFh
03000h
Internal ROM
(data flash) (1)
0FFD8h
Reserved area
Undefined instruction
Overflow
BRK instruction
Address match
Single step
Watchdog timer, oscillation stop detection, voltage monitor
Address break
(Reserved)
Reset
Part Number
R5F213G2ANNP, R5F213G2ADNP
R5F213G4ANNP, R5F213G4ADNP
R5F213G5ANNP, R5F213G5ADNP
R5F213G6ANNP, R5F213G6ADNP
Internal ROM
Internal RAM
Size
Address 0YYYYh
Size
Address 0XXXXh
Address ZZZZZh
8 Kbytes
16 Kbytes
24 Kbytes
32 Kbytes
0E000h
0C000h
0A000h
08000h
1 Kbyte
1.5 Kbytes
2 Kbytes
2.5 Kbytes
007FFh
009FFh
00BFFh
00DFFh
–