English
Language : 

M30218 Datasheet, PDF (161/179 Pages) Mitsubishi Electric Semiconductor – M30218 Group
CPU Rewrite Mode
Mitsubishi microcomputers
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Reset command (FF16 + FF16)
The reset command is used to stop the program command or the erase command in the middle of
operation. After writing command code “4016” or “2016” twice to the flash command register, write
command code “FF16” to the flash command register in the first bus cycle and the same command
code to the flash command register again in the second bus cycle. The program command or erase
command is disabled, with the flash memory placed in read mode.
Program
Erase
Start
Address = first location
Loop counter : X=0
Write program command Write : 4016
Write program data/
address
Write : Program data
Duration = 20 µs
Loop counter : X=X+1
Write program verify
command
Write : C016
Duration = 6 µs
FAIL
Next address ?
NO
X=25 ?
YES
NO
Verify
OK ?
PASS
Last
address ?
PASS
Verify
OK ?
FAIL
Write read command
Write read command Write : 0016
PASS
FAIL
Start
YES
All bytes =
"0016"?
NO
Program all bytes =
"0016"
Address = First address
Loop counter X=0
Write erase command
Write:2016
Write erase command Write:2016
Duration = 20ms
Loop counter X=X+1
Write erase verify
command/address
Write:A016
Duration = 6µs
FAIL
Next address
NO
X=1000 ?
YES
NO
Verify
OK?
PASS
Last
address?
PASS
Verify
OK?
FAIL
Read:
expect value=FF16
Write read command
Write read command Write:0016
PASS
FAIL
Figure BB-3. Program and erase execution flowchart in the CPU rewrite mode
160