M50FW040
Flowcharts and pseudo codes
Figure 21. Erase Suspend & Resume flowchart and pseudo code
Start
Write B0h
Write 70h
Read Status
Register
Program/Erase Suspend command:
– write B0h
– write 70h
do:
– read Status Register
NO
b7 = 1
YES
NO
b6 = 1
YES
Read data from
another block
or
Program
Erase Complete
while b7 = 1
If b6 = 0, Erase completed
Write D0h
Erase Continues
Write FFh
Read Data
Program/Erase Resume command:
– write D0h to resume erase
– if the Erase operation completed
then this is not necessary.
The device returns to Read as
normal (as if the Program/Erase
suspend was not issued).
AI03410
51/53