
Rev.3.01
REJ03B0158-0301
Aug 08, 2007
Page 17 of 134
38D5 Group
MEMORY
Special Function Register (SFR) Area
The Special Function Register area in the zero page contains
control registers such as I/O ports and timers.
RAM
RAM is used for data storage and for stack area of subroutine
calls and interrupts.
ROM
In the QzROM version, the first 128 Kbytes and the last 2 bytes
are reserved for device testing and the rest is the user area. Also,
1 byte of address FFDB
16
is reserved.
In the flash memory version, programming and erase operations
can be performed to reserved ROM areas.
Interrupt Vector Area
The interrupt vector area contains reset and interrupt vectors.
Zero Page
Access to this area with only 2 bytes is possible in the zero page
addressing mode.
Special Page
Access to this area with only 2 bytes is possible in the special
page addressing mode.
ROM Code Protect Address in QzROM Version (Address
FFDB
16
)
Address FFDB
16
as reserved ROM area in the QzROM version
is ROM code protect address. “00
16
” or “FE
16
” is written into
this address when selecting the protect bit write by using a serial
programmer and selecting protect enabled for writing shipment
by Renesas Technology Corp. When “00
16
” or “FE
16
” is set to
the ROM code protect address, the protect function is enabled, so
that reading or writing from/to the corresponding area is disabled
by a serial programmer.
As for the QzROM product in blank, the ROM code is protected
by selecting the protect bit write at ROM writing with a serial
programmer.
The protect can be performed, dividing twice. The protect area 1
is from the beginning address of ROM to address “EFFF
16
”.
As for the QzROM product shipped after writing, “00
16
” (protect
enabled to all area), “FE
16
” (protect enabled to the protect area 1)
or “FF
16
” (protect disabled) is written into the ROM code protect
address when Renesas Technology Corp. performs writing. The
writing of “00
16
”, “FE
16
” or “FF
16
” can be selected as ROM
option setup (“MASK option” written in the mask file converter)
when ordering.
For the ROM code protect in the flash memory version, refer to
the “FLASH MEMORY MODE”.
<Notes>
After a reset, the contents of RAM are undefined. Make sure to
set the initial value before use.
Fig. 10 Memory map diagram
Reserved area
SFR area
0FF0
16
1000
16
SFR area
Interrupt vector area
ROM area
Reserved ROM area
(128 bytes)
0100
16
0000
16
0040
16
0840
16
0863
16
FF00
16
FFDC
16
FFFE
16
FFFF
16
Zero page
Special page
RAM area
RAM size
(bytes)
Address
XXXX
16
00FF
16
013F
16
01BF
16
023F
16
02BF
16
033F
16
03BF
16
043F
16
063F
16
083F
16
192
256
384
512
640
768
896
1024
1536
2048
XXXX
16
ROM size
(bytes)
4096
8192
12288
16384
20480
24576
28672
32768
36864
40960
45056
49152
53248
57344
61440
Address
YYYY
16
F000
16
E000
16
D000
16
C000
16
B000
16
A000
16
9000
16
8000
16
7000
16
6000
16
5000
16
4000
16
3000
16
2000
16
1000
16
Address
ZZZZ
16
F080
16
E080
16
D080
16
C080
16
B080
16
A080
16
9080
16
8080
16
7080
16
6080
16
5080
16
4080
16
3080
16
2080
16
1080
16
YYYY
16
ZZZZ
16
Reserved ROM area
RAM
ROM
Protect area 1
EFFF
16
FFDB
16
Reserved ROM area
(ROM code protect)
LCD display RAM area
Not used
(
2
)
Note 1
: This area is available in the flash memory version only.
2
: ROM correction vectors are assigned. As for the details, refer to the “ROM CORRECTION FUNCTION”.
3
: In the flash memory version, programming and erase operations can be performed to reserved ROM areas.
Note that their areas are different from those in the QzROM version.
(
2
)
Reserved ROM area
(ID code)
FFD4
16
(
1
)
SFR area
0FEF
16
0FE0
16
(
1
)