| Electronic Components Datasheet Search |
|
AN2540 Datasheet(PDF) 2 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2540 Datasheet(HTML) 2 Page - STMicroelectronics |
|
2 / 25 page ![]() Contents AN2540 - Application note 2/25 Contents 1 Embedded Flash memory vs. EEPROM: main differences . . . . . . . . . . 5 1.1 Difference in write access time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 Difference in writing method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.3 Difference in erase time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 Appropriate solution for Emulated EEPROM in the STR91xFxx . . . . . . 7 2.1 STR91xFxx on-chip Flash memory features . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 STR91xFxx Flash memory library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 Implementing the EEPROM emulation . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.1 Principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2 1st method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2.1 Application example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2.2 EEPROM software description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.3 2nd method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.1 Application example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.2 EEPROM software description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.4 Program execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4 Embedded application aspects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1 Data granularity management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1.1 Programming on a word-by-word basis . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1.2 Programming on a byte-by-byte basis . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.2 Wear-leveling: Flash endurance improvement . . . . . . . . . . . . . . . . . . . . . 19 4.2.1 Application example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.3 Sector header recovery in case of power loss . . . . . . . . . . . . . . . . . . . . . 20 4.4 Emulated EEPROM parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.4.1 Program/Erase parameter cycling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.4.2 Program timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 6 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 |
|
|
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 |