
19. Flash Memory Version
page 294
0
9
3
f
o
7
0
2
,
0
3
.r
a
M
0
1
.
1
.
v
e
R
0
1
0
-
7
8
2
0
B
9
0
J
E
R
).
r
e
v
-
V
/.
r
e
v
-
T
(
p
u
o
r
G
8
2
/
C
6
1
M
19.2 Memory Map
The flash memory contains the user ROM area and the boot ROM area (reserved area). Figures 19.1 and
19.2
show a block diagram of the flash memory. The user ROM area has space to store the MCU operation
program in single-chip mode and two 2-Kbyte spaces: the block A and B.
The user ROM area is divided into several blocks. The user ROM area can be rewritten in CPU rewrite,
standard serial input/output, or parallel input/output mode.
However, to rewrite program in block 0 and 1 in CPU rewrite mode, set the FMR02 bit in the FMR0 register
to 1 (block 0, 1 rewrite enabled) and the FMR16 bit in the FMR1 register to 1 (blocks 0 to 4 rewrite enabled).
Also, to rewrite program in blocks 2 to 4 in CPU rewrite mode, set the FMR16 bit in the FMR1 register to 1
(blocks 0 to 4 rewrite enabled). When the PM10 bit in the PM1 register is set to 1 (data space access
enabled), block A and B can be available for use.
The boot ROM area (4-byte) is a reserved area. This boot ROM area has a standard serial I/O mode
control program stored before shipping. Do not rewrite the boot ROM area.
00FFFF16
Block B :2K bytes(2)
00F00016
4K bytes(4)
0FF00016
0FFFFF16
Boot ROM area
0FE00016
0FC00016
0FDFFF16
0F800016
Block 2 : 16K bytes
0FBFFF16
0F7FFF16
0F000016
0FFFFF16
User ROM area
Block A :2K bytes (2)
Block 2 : 16K bytes (5)
Block 3 : 32K bytes (5)
Block 1 : 8K bytes (3)
Block 0 : 8K bytes (3)
00F7FF16
00F80016
NOTES:
1. To specify a block, use the maximum even address in the block.
2. Blocks A and B are enabled to use when the PM10 bit in the PM1
register is set to 1.
3. Blocks 0 and 1 are enabled for programs and erases when the
FMR02 bit in the FMR0 register is set to 1 and the FMR16 bit in
the FMR1 register is set to 1. (CPU rewrite mode only)
4. The boot ROM area is reserved. Do not access.
5. Blocks 2 and 3 are enabled for programs and erases when the
FMR16 bit in the FMR1 register is set to 1. (CPU rewrite mode
only)
(Data space)
(Program space)
Figure 19.1 Flash Memory Block Diagram (ROM capacity 64 Kbytes)