M50FLW040AK1 STMicroelectronics, M50FLW040AK1 Datasheet - Page 49

no-image

M50FLW040AK1

Manufacturer Part Number
M50FLW040AK1
Description
4 Mbit (5 x 64KByte Blocks + 3 x 16 x 4KByte Sectors) 3V Supply Firmware Hub / Low Pin Count Flash Memory
Manufacturer
STMicroelectronics
Datasheet
Figure 27. Sector/Block Erase Flowchart and Pseudo Code
Note: 1. If an error is found, the Status Register must be cleared before further Program/Erase Controller operations.
FWH/LPC
Interface
Only
Address and D0h
Write 20h/32h
SR4, SR5 = 0
Read Status
Write Block
Register
SR7 = 1
SR3 = 0
SR5 = 0
SR1 = 0
Start
End
YES
YES
YES
YES
YES
NO
NO
NO
NO
NO
Suspend
Sequence Error (1)
Erase to Protected
Erase Error (1)
Block Error (1)
V PP Invalid
Command
NO
Error (1)
YES
Suspend
Loop
Block Erase command:
– Write 20h/32h
– Write block Address and D0h
do:
– Read Status Register
– If SR7=0 and a Program/Erase Suspend
If SR3 = 1,
– Enter the "V PP invalid" error handler
If SR4, SR5 = 1,
– Enter the "Command sequence"error handler
If SR5 = 1,
– Enter the "Erase Error" error handler
If SR1 = 1,
– Enter the "Erase to protected block"
error handler
(memory enters read Status Register after
the Block Erase command)
– SR7 is set to 1
– Enter suspend program loop
command has been executed
M50FLW040A, M50FLW040B
AI08424B
49/52

Related parts for M50FLW040AK1