M50FLW080A, M50FLW080B
Figure 27. Sector/Block Erase Flowchart and Pseudo Code
Start
Block/Sector Erase command:
– Write 20h/32h
Write 20h/32h
– Write Block/Sector Address and D0h
(memory enters read Status Register after
the Block/Sector Erase command)
Write Block/Sector
Address and D0h
do:
– Read Status Register
– If SR7=0 and a Program/Erase Suspend
command has been executed
– SR7 is set to 1
NO
Read Status
Register
Suspend
YES
– Enter suspend program loop
NO
Suspend
Loop
SR7 = 1
YES
NO
NO
NO
NO
V
Invalid
Error (1)
If SR3 = 1,
– Enter the "V invalid" error handler
PP
SR3 = 0
YES
PP
Command
Sequence Error (1)
If SR4, SR5 = 1,
– Enter the "Command sequence"error handler
SR4, SR5 = 0
YES
If SR5 = 1,
– Enter the "Erase Error" error handler
SR5 = 0
YES
Erase Error (1)
FWH/LPC
Interface
Only
If SR1 = 1,
Erase to Protected
Block/Sector Error (1)
SR1 = 0
– Enter the "Erase to protected Block/Sector"
error handler
YES
End
AI09094
Note: 1. If the Block Erase command is used on a block that is split into 4KByte sectors, each of the 16 sectors of the block should be un-
locked before performing the erase operation.
2. If an error is found, the Status Register must be cleared before further Program/Erase Controller operations.
50/53