m58wr032et STMicroelectronics, m58wr032et Datasheet - Page 75

no-image

m58wr032et

Manufacturer Part Number
m58wr032et
Description
32 Mbit 2mb X 16, Multiple Bank, Burst 1.8v Supply Flash Memory
Manufacturer
STMicroelectronics
Datasheet
Quadruple Enhanced Factory Program Pseudo Code
quad_efp_command(addressFlow,dataFlow,n)
/* n is the number of pages to be programmed.*/
ror*/
}
{
/* Setup phase */
for (i=0; i++; i< n){
} while (status_register.SR7==0);
if (status_register.SR3==1) /*VPP invalid error*/
writeToFlash(addressFlow[0],0x75);
}
/* Exit Phase */
writeToFlash(another_block_address,FFFFh);
/* status register polling */
do{
if (status_register.SR1==1) /*program to protected block error*/
if (status_register.SR4==1) /*program failure error*/
}
}while (status_register.SR0==1)
do{
status_register=readFlash(any_address);
writeToFlash(addressFlow[i],dataFlow[i,3]);
/*Data Load Phase*/
/*First Data*/
writeToFlash(addressFlow[i],dataFlow[i,0]);
/*at the first data of the first page, Quad-EFP may be aborted*/
if (First_Page) {
}
/*2nd data*/
/*3rd data*/
writeToFlash(addressFlow[i],dataFlow[i,1]);
writeToFlash(addressFlow[i],dataFlow[i,2]);
/*4th data*/
/* Program&Verify Phase */
/* E or G must be toggled */
error_handler();
error_handler();
error_handler();
/* E or G must be toggled*/
}
status_register=readFlash(any_address);
if (status_register.SR7==1){
status_register=readFlash(any_address);
/*EFP aborted for an error*/
if (status_register.SR4==1) /*program error*/
if (status_register.SR3==1) /*VPP invalid error*/
if (status_register.SR1==1) /*program to protect block er-
error_handler();
error_handler();
error_handler();
M58WR032ET, M58WR032EB
75/81

Related parts for m58wr032et