English
Language : 

M30222 Datasheet, PDF (193/237 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
dUevnedloerpment
Specifications in this manual are tentative and subject to change
MITSUBISHI MICROCOMPUTERS
M30222 Group
Rev. G
CPU Rewrite Mode (Flash Memory Version)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Start
Write 2016/A716
2 016 : All blocks
A 716 : Only unlocked blocks
Write 2016/D016
Block address
2 016 : Chip erase
A 716 : Block/Chip erase
Read status
register
SR7=1? NO
or
RY/BY=1
YES
NO
SR5= 0
YES
Erase completed
Erase
error
Fig. 1.153. Erase flowchart
Erase All Unlocked Blocks Command (A716/D016)
By writing the command code "A716" in the first bus cycle and the confirmation command code "D016" in the
second bus cycle that follows, the system starts erase all unlocked blocks (erase and erase verify). Whether the
erase all unlocked blocks command is terminated can be confirmed by reading the status register or the RY/BY
status flag. When the erase all unlocked blocks operation starts, the read status register mode is accessed
automatically and the content of the status register can be read out. The status register bit 7 (SR7) is set to "0" at
the same time the erase operation starts and is returned to "1" upon completion of the erase operation. The read
status register mode remains active until the Read Array command (FF16) is written. The RY/BY status flag is "0"
during erase operation and "1" when the erase operation is completed as is the status register bit 7.
At erase all blocks end, erase results can be checked by reading the status register. For details, refer to the
section where the status register is detailed. Figure 1.153 shows an example of a block erase flowchart.
1-194