Rev.1.02
REJ03B0179-0102
May 25, 2007
Page 15 of 124
4571 Group
PROGRAM MEMORY (ROM)
The program memory is a mask ROM. 1 word of ROM is
composed of 10 bits. ROM is separated every 128 words by the
unit of page (addresses 0 to 127). Table 1 shows the ROM size
and pages. Figure 16 shows the ROM map of M34571G6.
Note 1.Data in pages 64 to 127 can be referred with the TABP p
instruction after the SBK instruction is executed.
Data in pages 0 to 63 can be referred with the TABP p
instruction after the RBK instruction is executed.
A part of page 1 (addresses 0080
16
to 00FF
16
) is reserved for
interrupt addresses (Figure 17). When an interrupt occurs, the
address (interrupt address) corresponding to each interrupt is set
in the program counter, and the instruction at the interrupt
address is executed. When using an interrupt service routine,
write the instruction generating the branch to that routine at an
interrupt address.
Page 2 (addresses 0100
16
to 017F
16
) is the special page for
subroutine calls. Subroutines written in this page can be called
from any page with the 1-word instruction (BM). Subroutines
extending from page 2 to another page can also be called with the
BM instruction when it starts on page 2.
ROM pattern (bits 9 to 0) of all addresses can be used as data
areas with the TABP p instruction.
ROM Code Protect Address
When selecting the protect bit write by using a serial
programmer or selecting protect enabled for writing shipment by
Renesas Technology corp., reading or writing from/to QzROM 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.
As for the QzROM product shipped after writing, whether the
ROM code protect is used or not can be selected as ROM option
setup (“MASK option” written in the mask file converter) when
ordering.
Fig 16. ROM map of M34571GD
Fig 17. Page 1 (addresses 0080
16
to 00FF
16
) structure
Table 8
ROM size and pages
Part number
ROM (PROM) size
(
×
10 bits)
4096 words
6144 words
16384 words
Pages
M34571G4
M34571G6
M34571GD
32 (0 to 31)
48 (0 to 47)
128 (0 to 127)
Interrupt address page
Subroutine special page
0000
16
007F
16
0080
16
00FF
16
0100
16
017F
16
0180
16
3FFF
16
Page 127
Page 0
Page 1
Page 2
Page 3
9 8
7
6
5
4
3
2
1
0
00FF
16
008C
16
008A
16
0088
16
0086
16
0084
16
0082
16
0080
16
9
8
7
6
5
4
3
2
1
0
008E
16
Voltage drop detection circuit interrupt address
Timer 2 interrupt address
Timer 1 interrupt address
External 0 interrupt address
External 1 interrupt address
Timer 3 interrupt address