Datasheet

R8C/38C Group 3. Memory
R01DS0017EJ0110 Rev.1.10 Page 15 of 55
Nov 02, 2010
3. Memory
3.1 R8C/38C Group
Figure 3.1 is a Memory Map of R8C/38C Group. The R8C/38C Group has a 1-Mbyte address space from addresses
00000h to FFFFFh. The internal ROM (program ROM) is allocated lower addresses, beginning with address
0FFFFh. For example, a 64-Kbyte internal ROM area is allocated addresses 04000h to 13FFFh.
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 6-Kbyte internal
RAM area is allocated addresses 00400h to 01BFFh. 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 (the SFR areas
for the DTC and other modules). 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/38C Group
0FFFFh
0FFDCh
Notes:
1. The data flash indicates block A (1 Kbyte), block B (1 Kbyte), block C (1 Kbyte), and block D (1 Kbyte).
2. The SFR areas for the DTC and other modules are allocated to addresses 02C00h to 02FFFh.
3. The blank areas are reserved and cannot be accessed by users.
Internal RAM
Size Address 0XXXXh
2.5 Kbytes
4 Kbytes
6 Kbytes
8 Kbytes
10 Kbytes
00DFFh
013FFh
01BFFh
023FFh
02BFFh
Part Number
Internal ROM
Size Address 0YYYYh
R5F21386CNFP, R5F21386CDFP,
R5F21386CNXXXFP,
R5F21386CDXXXFP
R5F21387CNFP, R5F21387CDFP,
R5F21387CNXXXFP,
R5F21387CDXXXFP
R5F21388CNFP, R5F21388CDFP,
R5F21388CNXXXFP,
R5F21388CDXXXFP
R5F2138ACNFP, R5F2138ACDFP,
R5F2138ACNXXXFP,
R5F2138ACDXXXFP
R5F2138CCNFP, R5F2138CCDFP,
R5F2138CCNXXXFP,
R5F2138CCDXXXFP
32 Kbytes
48 Kbytes
64 Kbytes
96 Kbytes
128 Kbytes
08000h
04000h
04000h
04000h
04000h
Address ZZZZZh
13FFFh
1BFFFh
23FFFh
FFFFFh
0FFFFh
0YYYYh
0XXXXh
00400h
002FFh
00000h
Internal ROM
(program ROM)
Internal RAM
SFR
(Refer to 4. Special Function
Registers (SFRs))
02FFFh
02C00h
SFR
(2)
(Refer to 4. Special Function
Registers (SFRs))
ZZZZZh
03FFFh
03000h
Internal ROM
(data flash)
(1)
Internal ROM
(program ROM)
Undefined instruction
Overflow
BRK instruction
Address match
Single step
Watchdog timer, oscillation stop detection, voltage monitor
Address break
(Reserved)
Reset