
7542 Group
Rev.3.02 Oct 31, 2006 Page 73 of 134
REJ03B0006-0302
Fig. 94 Block diagram of built-in flash memory
●
Boot Mode
The control program for CPU rewrite mode must be written into
the User ROM or Boot ROM area in parallel I/O mode beforehand.
(If the control program is written into the Boot ROM area, the stan-
dard serial I/O mode becomes unusable.)
See Figure 94 for details about the Boot ROM area.
Normal microcomputer mode is entered when the microcomputer
is reset with pulling CNV
SS
pin low. In this case, the CPU starts
operating using the control program in the User ROM area.
When the microcomputer is reset and the CNV
SS
pin high after
pulling the P3
7
(RP) pin low, P3
2
(CE) pin high, P0
6
/S
CLK
pin low
and P0
5
/TxD
2
pin high, the CPU starts operating (start address of
program is stored into addresses FFFC
16
and FFFD
16
) using the
control program in the Boot ROM area. This mode is called the
“Boot mode”. Also, User ROM area can be rewritten using the con-
trol program in the Boot ROM area.
●
Block Address
Block addresses refer to the maximum address of each block.
These addresses are used in the block erase command.
Notes 1: The boot ROM area can be rewritten in a parallel I/O mode. (Access to except boot ROM area is disablrd.)
2: To specify a block, use the maximum address in the block.
3: The mask ROM version has the reserved ROM area. Note the difference of the area.
SFR area
SFR area
Internal RAM area
(1K bytes)
Internal flash memory
area
(4K bytes) (Note 3)
Internal flash memory
area
(32K bytes) (Note 3)
0000
16
0040
16
043F
16
0FE0
16
RAM
8000
16
0FFF
16
FFFF
16
7000
16
User ROM area
7000
16
7800
16
8000
16
E000
16
C000
16
FFFF
16
F000
16
FFFF
16
32K bytes ROM Product
Data block B :
2K bytes
Boot ROM area
4K bytes
Data block A :
2K bytes
block 2 : 16K bytes
block 1 : 8K bytes
block 0 : 8K bytes
SFR area
SFR area
Internal RAM area
(1K bytes)
Internal flash memory
area
(4K bytes) (Note 3)
Internal flash memory
area
(16K bytes) (Note 3)
0000
16
0040
16
043F
16
0FE0
16
RAM
C000
16
0FFF
16
7FFF
16
FFFF
16
7000
16
SFR area
7000
16
7800
16
7FFF
16
E000
16
C000
16
FFFF
16
16K bytes ROM Product
Data block B :
2K bytes
Data block A :
2K bytes
block 1 : 8K bytes
block 0 : 8K bytes
●
CPU Rewrite Mode
In CPU rewrite mode, the internal flash memory can be operated
on (read, program, or erase) under control of the Central Process-
ing Unit (CPU).
In CPU rewrite mode, only the User ROM area shown in Figure 94
can be rewritten; the Boot ROM area cannot be rewritten. Make
sure the program and block erase commands are issued for only
the User ROM area and each block area.
The control program for CPU rewrite mode can be stored in either
User ROM or Boot ROM area. In the CPU rewrite mode, because
the flash memory cannot be read from the CPU, the rewrite con-
trol program must be transferred to internal RAM area before it
can be executed.
• Outline Performance
CPU rewrite mode is usable in the single-chip or Boot mode. The
only User ROM area can be rewritten.
In CPU rewrite mode, the CPU erases, programs and reads the in-
ternal flash memory as instructed by software commands. This
rewrite control program must be transferred to internal RAM area
before it can be executed.
The MCU enters CPU rewrite mode by setting “1” to the CPU re-
write mode select bit (bit 1 of address 0FE0
16
). Then, software
commands can be accepted.
Use software commands to control program and erase operations.
Whether a program or erase operation has terminated normally or
in error can be verified by reading the status register.