
12
3591A–FLASH–12/05
AT49BV160D(T)
11. Sector Erase Flowchart
Start
No
Suspend
Erase
1
0
Ye s
Suspend
Erase
Loop
Write 20,
Write D0,
Address
Read Status
Register
SR7 =
Full Erase
Status Check
(If Desired)
Erase
Complete
(
Erase)
(Erase Confirm)
Sector
Sector
Any Address
Sector
12. Sector Erase Procedure
Bus
Operation
Command
Comments
Write
Sector
Erase
Setup
Data = 20
Addr = Any Address
Write
Erase
Confirm
Data = D0
Addr = Sector to be erased (SA)
Read
None
Status register data: Toggle CE
or
OE to update status register data
Idle
None
Check SR7
1 = WSM Ready
0 = WSM Busy
Repeat for subsequent sector erasures.
Full status register check can be done after each sector erase,
or after a sequence of sector erasures.
Write FF after the last operation to enter read mode.
13. Full Erase Status Check Flowchart
0
0
0
1
1,1
1
1
0
Read Status
Register
Erase
Successful
SR1 =
Sector
Sector
Locked
Error
SR3 =
V
P P
Range
Error
SR4, SR5
=
Command
Sequence Error
SR5 =
Erase
Error
Sector
14. Full Erase Status Check Procedure
Bus
Operation
Command
Comments
Idle
None
Check SR3:
1 = V
PP
Range Error
Idle
None
Check SR4, SR5:
Both 1 = Command Sequence
Error
Idle
None
Check SR5:
1 = Sector Erase Error
Idle
None
Check SR1:
1 = Attempted erase of locked
sector; erase aborted.
SR1, SR3 must be cleared before the Write State Machine
allows further erase attempts.
Only the Clear Status Register command clears SR1, SR3,
SR4, SR5.
If an error is detected, clear the status register before
attempting an erase retry or other error recovery.