| Electronic Components Datasheet Search |
|
ST10F296E Datasheet(PDF) 63 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST10F296E Datasheet(HTML) 63 Page - STMicroelectronics |
|
63 / 346 page ![]() Obsolete Product(s) - Obsolete Product(s) ST10F296E Internal Flash memory 63/346 5.5.5 Erase suspend, program and resume A sector erase operation can be suspended in order to program (word or double word) another sector. Example: Sector erase of sector B3F1 of Bank 3 in XFlash module. FCR0H|= 0x0800; /*Set SER in FCR0H*/ FCR1H|= 0x0002; /*Set B3F1*/ FCR0H|= 0x8000; /*Operation start*/ Example: Sector erase suspend FCR0H|= 0x4000; /*Set SUSP in FCR0H*/ do /* Loop to wait for LOCK=0 and BSY bit(s)=0 */ {tmp = FCR0L ; } while( (tmp && 0x00E6) ); Example: Word program of data 0x5555AAAA at address 0x0C5554 in XFlash module. FCR0H&= 0xBFFF; /*Rst SUSP in FCR0H*/ FCR0H|= 0x2000; /*Set WPG in FCR0H*/ FARL = 0x5554; /*Load Add in FARL*/ FARH = 0x000C; /*Load Add in FARH*/ FDR0L = 0xAAAA; /*Load Data in FDR0L*/ FDR0H = 0x5555; /*Load Data in FDR0H*/ FCR0H|= 0x8000; /*Operation start*/ Once the program operation is finished, the erase operation can be resumed in the following way: FCR0H|= 0x0800; /*Set SER in FCR0H*/ FCR0H|= 0x8000; /*Operation resume*/ During the program operation in erase suspend, bits SER and SUSP are low. A word or double word program during erase suspend cannot be suspended. To summarize: ● A sector erase can be suspended by setting SUSP bit ● To perform a word program operation during erase suspend, bits SUSP and SER must first be reset, then bits WPG and WMS can be set. ● To resume the sector erase operation bit SER must be set again ● It is forbidden to start any write operation when the SUSP bit is set Obsolete Product(s) - Obsolete Product(s) |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |