English
Language : 

M58LR128HT Datasheet, PDF (98/112 Pages) STMicroelectronics – 128 Mbit (8 Mb ×16, Multiple Bank, Multilevel interface, Burst) 1.8 V supply Flash memories
Flowcharts and pseudocodes
M58LR128HT, M58LR128HB
Figure 24. Erase Suspend & Resume flowchart and pseudocode
Start
Write B0h
Write 70h
Read Status
Register
NO
SR7 = 1
YES
NO
SR6 = 1
YES
Write FFh
Erase Complete
Read data from another block,
Program,
Set Configuration Register or
Block Protect/Unprotect/Lock
Write D0h
Write FFh
Erase Continues
Read Data
erase_suspend_command ( ) {
writeToFlash (bank_address, 0xB0) ;
writeToFlash (bank_address, 0x70) ;
/* read status register to check if
erase has already completed */
do {
status_register=readFlash (bank_address) ;
/* E or G must be toggled*/
} while (status_register.SR7== 0) ;
if (status_register.SR6==0) /*erase completed */
{ writeToFlash (bank_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 (bank_address, 0xFF) ;
read_program_data ( );
/*read or program data from another address*/
writeToFlash (bank_address, 0xD0) ;
/*write 0xD0 to resume erase*/
}
}
AI13893
1. The Read Status Register command (Write 70h) can be issued just before or just after the Erase Resume command.
98/112