Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

M28W800 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
MFG CO.
'M28W800' PDF : 42 Pages View PDF
M28W800BT, M28W800BB
Figure 20. Erase Suspend & Resume Flowchart and Pseudo Code
Start
Write B0h
Write 70h
Read Status
Register
NO
b7 = 1
YES
NO
b6 = 1
YES
Write FFh
Read data from
another block
or
Program
Write D0h
Erase Complete
Write FFh
Erase Continues
Read Data
erase_suspend_command ( ) {
writeToFlash (any_address, 0xB0) ;
writeToFlash (any_address, 0x70) ;
/* read status register to check if
erase has already completed */
do {
status_register=readFlash (any_address) ;
/* E or G must be toggled*/
} while (status_register.b7== 0) ;
if (status_register.b6==0) /*erase completed */
{ writeToFlash (any_address, 0xFF) ;
read_data ( ) ;
/*read data from another block*/
/*The device returns to Read Array
(as if program/erase suspend was not issued).*/
}
else
{ writeToFlash (any_address, 0xFF) ;
read_program_data ( );
/*read or program data from another address*/
writeToFlash (any_address, 0xD0) ;
/*write 0xD0 to resume erase*/
}
}
AI03549b
40/42
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]