m28w320bb STMicroelectronics, m28w320bb Datasheet - Page 41

no-image

m28w320bb

Manufacturer Part Number
m28w320bb
Description
32 Mbit 2mb X16, Boot Block 3v Supply Flash Memory
Manufacturer
STMicroelectronics
Datasheet
Figure 20. Erase Suspend & Resume Flowchart and Pseudo Code
Erase Continues
Read data from
another block
Read Status
Write B0h
Write FFh
Write D0h
Write 70h
Register
Program
b7 = 1
b6 = 1
Start
or
YES
YES
NO
NO
Erase Complete
Read Data
Write FFh
erase_suspend_command ( ) {
if (status_register.b6==0) /*erase completed */
else
}
do {
writeToFlash (any_address, 0xB0) ;
writeToFlash (any_address, 0x70) ;
/* read status register to check if
erase has already completed */
{ writeToFlash (any_address, 0xFF) ;
{ writeToFlash (any_address, 0xFF) ;
} while (status_register.b7== 0) ;
status_register=readFlash (any_address) ;
/* E or G must be toggled*/
}
}
read_data ( ) ;
/*read data from another block*/
/*The device returns to Read Array
(as if program/erase suspend was not issued).*/
read_program_data ( );
/*read or program data from another address*/
writeToFlash (any_address, 0xD0) ;
/*write 0xD0 to resume erase*/
M28W320BT, M28W320BB
AI03549b
41/43

Related parts for m28w320bb