Mitsubishi Electric M32R Series User Manual page 171

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

6
Note 1: When Erase operation starts, you have the Read Status Register command automatically
entered. (You do not need to enter the Read Status Register command until you issue another
command.)
Note 2: Examine the Flash Status Register 2 ERESE (Auto Erase operating condition), WRERR1
(Program operating condition 1), and WRERR2 (Program operating condition 2) bits to check for
erase error.
Figure 6.5.13 Block Erase
START
Write Erase command (H'2020) to any
address of internal flash memory.
Write Verify command (H'D0D0) to the last
even address of the block you want to erase.
Flash memory contents erased by
Erase program (Note 1)
1 µs wait
(by hardware timer or software timer)
FSTAT bit = 1
YES
Read any address of internal flash memory
to check for erase error. (Note 2)
END
6-37
6.5 Programming of the Internal Flash Memory
NO
TIME OUT ?
Forcibly terminated
INTERNAL MEMORY
NO
1s
YES
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents