![](http://datasheet.mmic.net.cn/30000/M37516E6HP_datasheet_2359820/M37516E6HP_50.png)
Rev.1.01
Jul 01, 2003
page 50 of 89
7516 Group
Fig. 57 Block diagram of built-in flash memory
(1) 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 57
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 to be
executed before it can be executed.
Microcomputer Mode and 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 57 for details about the Boot ROM area.
Normal microcomputer mode is entered when the microcomputer
is reset with pulling CNVSS pin low. In this case, the CPU starts
operating using the control program in the User ROM area.
When the microcomputer is reset by pulling the P41/INT0 pin high,
the CNVss pin high, the CPU starts operating using the control
program in the Boot ROM area (program start address is FFFC16,
FFFD16 fixation). This mode is called the “Boot” mode.
Block Address
Block addresses refer to the maximum address of each block.
These addresses are used in the block erase command. In case
of the M37516F8, it has only one block.
800016
Block 1 : 32 kbyte
User ROM area
4 kbyte
F00016
FFFF16
Boot ROM area
Notes 1: The Boot ROM area can be rewritten in only parallel
input/output mode. (Access to any other areas is inhibited.)
2: To specify a block, use the maximum address in the block.
Product name
Flash memory
start address
M37516F8800016
Parallel I/O mode
800016
Block 1 : 32 kbyte
FFFF16
CPU rewrite mode, standard serial I/O mode
User ROM area
4 kbyte
F00016
FFFF16
Boot ROM area
BSEL = 0BSEL = 1
User area / Boot area selection bit = 0
User area / Boot area selection bit = 1