52
3850 Group (Spec. H/A)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
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 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 by pulling the P4
1
/INT
0
pin high,
the CNVss pin high, the CPU starts operating using the control
program in the Boot ROM area (program start address is FFFC
16
,
FFFD
16
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 M38507F8, it has only one block.
8
0
0
0
1
6
Block 1 : 32 kbyte
U
BSEL = 0
s
e
r
R
O
M
a
r
e
a
4
kb
y
t
e
F
0
0
0
1
6
FFFF
16
FFFF
16
B
BSEL = 1
o
o
t
R
O
M
a
r
e
a
N
o
t
e
s
1
:
T
i
T
h
p
o
e
u
s
B
t
/
p
o
o
e
o
u
c
t
t
i
f
R
u
y
O
t
a
M
m
b
a
d
c
r
e
k
e
.
,
a
(
u
A
s
c
a
c
e
n
c
t
b
s
e
e
s
m
r
t
e
o
a
w
a
x
r
n
i
m
i
t
y
t
e
o
u
n
t
m
h
i
n
e
a
r
d
o
d
n
a
l
y
e
e
a
s
p
s
s
a
i
r
i
n
a
s
l
i
l
n
h
e
l
n
p
o
l
o
e
h
r
t
h
e
i
b
b
i
l
t
o
e
c
d
k
.
.
)
2
:
r
P
r
o
d
u
c
t
n
a
m
e
F
s
l
a
t
a
s
r
h
t
a
m
d
e
d
m
r
e
o
s
r
s
y
M
3
8
5
0
7
F
8
80
0
0
1
6
P
a
r
a
l
l
e
l
I
/
O
m
o
d
e
8000
16
B
l
o
c
k
1
:
3
2
k
b
y
t
e
F
F
F
F
1
6
C
P
U
r
e
w
r
i
t
e
m
o
d
e
,
s
t
a
n
d
a
r
d
s
e
r
i
a
l
I
/
O
m
o
d
e
U
s
e
r
R
O
M
a
r
e
a
4
kb
y
t
e
F
0
0
0
1
6
F
F
F
F
1
6
B
o
o
t
R
O
M
a
r
e
a
User area / Boot area selection bit = 0
User area / Boot area selection bit = 1