Rev.3.01
REJ03B0158-0301
Aug 08, 2007
Page 74 of 134
38D5 Group
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 standard serial I/O mode becomes unusable.)
See Figure 70 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 P4
1
/TxD pin and CNV
SS
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 control 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.
CPU Rewrite Mode
In CPU rewrite mode, the internal flash memory can be operated
on (read, program, or erase) under control of the Central
Processing Unit (CPU).
In CPU rewrite mode, only the User ROM area shown in Figure
70 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 control program must be transferred to internal RAM
area before it can be executed.
Fig 70. Block diagram of built-in flash memory
Data block A:
1K bytes
Block 1: 26K bytes
Block 0: 32 K bytes
FFFF
16
8000
16
1800
16
1400
16
1000
16
User ROM area
Data block B:
1K bytes
SFR area
Internal RAM area
(2K bytes)
FFFF
16
1000
16
0FFF
16
0FE0
16
083F
16
0040
16
0000
16
FFFF
16
F000
16
Boot ROM area
4K bytes
SFR area
Internal flash memory area
(60K bytes)
RAM
Notes1
: The boot ROM area can be rewritten
in a parallel I/O mode. (Access to
except boot ROM area is disabled.)
2
: To specify a block, use the maximum
address in the block.
3
: The QzROM version has the reserved
ROM area. Note the difference of the
area.