Figure 18. Erase Flowchart and Pseudo Code
Start
M58LW032D
Write 20h
Write D0h to
Block Address
Erase command:
– write 20h
– write D0h to Block Address
(A12-A17)
(memory enters read Status
Register after the Erase command)
Read Status
Register
NO
Suspend
YES
do:
– read status register
– if Program/Erase Suspend command
given execute suspend erase loop
NO
SR7 = 1
Suspend
Loop
while SR7 = 1
YES
NO
SR3 = 0
YES
VPEN Invalid
Error (1)
If SR3 = 1, VPEN invalid error:
– error handler
NO
SR4, SR5 = 0
YES
Command
Sequence Error
If SR4, SR5 = 1, Command Sequence error:
– error handler
NO
SR5 = 0
YES
Erase
Error (1)
If SR5 = 1, Erase error:
– error handler
NO
SR1 = 0
YES
End
Erase to Protected
Block Error
If SR1 = 1, Erase to Protected Block Error:
– error handler
AI00613C
Note: 1. If an error is found, the Status Register must be cleared (Clear Status Register Command) before further Program or Erase oper-
ations.
41/50