M50FLW040A, M50FLW040B
Flowcharts and pseudo codes
Figure 24. Program Suspend and 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
SR7 = 1
YES
NO
SR2 = 1
YES
Write a read
Command
Program Complete
while SR7 = 0
If SR2 = 0 Program completed
Read data from
another address
Write D0h
Program Continues
Write FFh
Read Data
Program/Erase Resume command:
– write D0h to resume the program
– if the Program operation completed
then this is not necessary.
The device returns to Read as
normal (as if the Program/Erase
suspend was not issued).
AI08426B
1. If an error is found, the Status Register must be cleared before further Program/Erase operations.
2. Any address within the bank can equally be used.
59/64