| 数据搜索系统,热门电子元器件搜索 |
|
ST10F296 数据表(PDF) 62 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST10F296 数据表(HTML) 62 Page - STMicroelectronics |
|
62 / 346 page ![]() Obsolete Product(s) - Obsolete Product(s) Internal Flash memory ST10F296E 62/346 5.5 Write operation examples Examples are presented below for each kind of Flash write operation. 5.5.1 Word program Example: 32-bit word program of data 0xAAAAAAAA at address 0x0C5554 in XFlash module. 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 = 0xAAAA; /*Load Data in FDR0H*/ FCR0H|= 0x8000; /*Operation start*/ 5.5.2 Double word program Example: Double word program (64-bit) of data 0x55AA55AA at address 0x095558 and data 0xAA55AA55 at address 0x09555C in IFlash module. FCR0H|= 0x1080; /*Set DWPG, SMOD*/ FARL = 0x5558; /*Load Add in FARL*/ FARH = 0x0009; /*Load Add in FARH*/ FDR0L = 0x55AA; /*Load Data in FDR0L*/ FDR0H = 0x55AA; /*Load Data in FDR0H*/ FDR1L = 0xAA55; /*Load Data in FDR1L*/ FDR1H = 0xAA55; /*Load Data in FDR1H*/ FCR0H|= 0x8000; /*Operation start*/ Double word program is always performed on the double word aligned on an even word. Bit ADD2 of FARL is ignored. 5.5.3 Sector erase Example: Sector erase of sectors B3F1 and B3F0 of Bank 3 in XFlash module. FCR0H|= 0x0800; /*Set SER in FCR0H*/ FCR1H|= 0x0003; /*Set B3F1, B3F0*/ FCR0H|= 0x8000; /*Operation start*/ 5.5.4 Suspend and resume Example: Word program, double word program, and sector erase operations can be suspended in the following way: FCR0H|= 0x4000; /*Set SUSP in FCR0H*/ The operation can be resumed in the following way: FCR0H|= 0x0800; /*Set SER in FCR0H*/ FCR0H|= 0x8000; /*Operation resume*/ Before resuming a suspended erase, FCR1H/FCR1L registers must be read to check if the erase is already completed (FCR1H = FCR1L = 0x0000 if erase is complete). The original setup of select operation bits in the FCR0H/L registers must be restored before the operation resume, otherwise the operation is aborted and bit RESER of FER is set. Obsolete Product(s) - Obsolete Product(s) |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |