| Electronic Components Datasheet Search |
|
AN1477 Datasheet(PDF) 2 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1477 Datasheet(HTML) 2 Page - STMicroelectronics |
|
2 / 5 page ![]() 2/5 EMULATED DATA EEPROM WITH XFLASH MEMORY 1 RESTRICTIONS 1 To guarantee that the XFlash program memory is write protected when programming the Emulated Data EEPROM, the whole program memory MUST be located in sector 0 (refer to the datasheet). This implies that: – The maximum program memory size is 4 Kbytes (sector 0 set by option byte to the maximum size which allows sector 1 availability). – IAP is not available for program memory. 2 During emulated data EEPROM programming, the XFlash can not be executed. This implies that: – The software which programs the emulated data EEPROM must be located in RAM. This software needs at least 16 bytes of RAM as shown in following program example. – The interrupts cannot be served during programming so they have to be masked. 2 PROCEDURE To program 1 byte in the emulated data EEPROM (located in sector 1) the following steps have to be done: 1 Enter the XFlash RASS key to unlock the access to the FCSR register (only once, after reset for example). 2 Download the programming driver into RAM (from 0083h to 008Fh for example). 3 Write the data and address to be programmed in a RAM buffer (at RAM address 0080h to 0082h for example). 4 Call the downloaded RAM driver to program the emulated data EEPROM. 3 ASSEMBLER PROGRAM EXAMPLE The following program example describes a driver routine to be called to emulate data EEPROM with an XFlash ST7 device. This example assumes that all restrictions are taken into account. In this example, the program memory size is 4 Kbytes and the data EEPROM is also 4 Kbytes, but these sizes can be adjusted through option bytes depending on the needs. st7/ ;*************************************************************************** ; TITLE: XdataE2Emul.asm ; AUTHOR: CMG_MCD Application Team ; DESCRIPTION: Data EEPROM emulation with XFlash memory (ST72F264 example) ;*************************************************************************** TITLE "XdataE2Emul.asm" BYTES 2 |
|
|
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 |