M28W320ECB70N6E STMICROELECTRONICS [STMicroelectronics], M28W320ECB70N6E Datasheet - Page 47

no-image

M28W320ECB70N6E

Manufacturer Part Number
M28W320ECB70N6E
Description
32 Mbit (2Mb x16, Boot Block) 3V Supply Flash Memory
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
Figure 22. Erase Suspend & Resume Flowchart and Pseudo Code
Block Protect/Unprotect/Lock
Program/Protection Program
Erase Continues
Read data from
another block
Read Status
Write D0h
Write B0h
Write FFh
Write 70h
Register
b7 = 1
b6 = 1
Start
or
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 */
} while (status_register.b7== 0) ;
{ writeToFlash (any_address, 0xFF) ;
{ writeToFlash (any_address, 0xFF) ;
}
}
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*/
M28W320ECT, M28W320ECB
AI03542b
47/53

Related parts for M28W320ECB70N6E