m58wr032et STMicroelectronics, m58wr032et Datasheet - Page 71

no-image

m58wr032et

Manufacturer Part Number
m58wr032et
Description
32 Mbit 2mb X 16, Multiple Bank, Burst 1.8v Supply Flash Memory
Manufacturer
STMicroelectronics
Datasheet
Figure 28. Protection Register Program Flowchart and Pseudo Code
Note: 1. Status check of SR1 (Protected Block), SR3 (V
2. If an error is found, the Status Register must be cleared before further Program/Erase Controller operations.
3. Any address within the bank can equally be used.
after a sequence.
Write C0h (3)
Write Address
Read Status
Register (3)
SR7 = 1
SR3 = 0
SR4 = 0
SR1 = 0
& Data
Start
End
YES
YES
YES
YES
NO
NO
NO
NO
Program to Protected
Block Error (1, 2)
V PP Invalid
Error (1, 2)
Error (1, 2)
Program
protection_register_program_command (addressToProgram, dataToProgram) {:
PP
Invalid) and SR4 (Program Error) can be made after each program operation or
if (status_register.SR3==1) /*VPP invalid error */
if (status_register.SR4==1) /*program error */
if (status_register.SR1==1) /*program to protect block error */
}
do {
error_handler ( ) ;
error_handler ( ) ;
error_handler ( ) ;
writeToFlash (addressToProgram, 0xC0) ;
writeToFlash (addressToProgram, dataToProgram) ;
/*Memory enters read status state after
the Program Command*/
} while (status_register.SR7== 0) ;
status_register=readFlash (addressToProgram) ;
/* E or G must be toggled*/
M58WR032ET, M58WR032EB
/*see note (3) */
/* see note (3) */
AI06177b
71/81

Related parts for m58wr032et