STMicroelectronics AN2540 EEPROM Emulation Application Note

This application note explains how to replace the external EEPROM with the emulated-EEPROM in STR91xF devices using the on-chip Flash memory, which saves components and silicon area.


STMicroelectronics AN2540 EEPROM Emulation Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
25
File format
PDF
File size
245 KB
Published
07 August, 2012
Updated
30 September, 2023
Model
STR91XF
MD5 checksum
4F77BCD925211C0BCF02FFB10718BF17

About this manual

This document describes the process of replacing external EEPROM with emulated EEPROM using the embedded Flash memory of STR91xF devices. It highlights the differences between external EEPROM and embedded Flash memory, such as write access time, writing method, and erase time. The note also discusses the specific features of the STR91xF on-chip Flash memory that support this emulation.

What's inside

  • Embedded Flash memory vs. EEPROM
  • STR91xF on-chip Flash memory features
  • STR91xF Flash memory library
  • Implementing the EEPROM emulation
  • Data granularity management
  • Wear-leveling
  • Sector header recovery
  • Emulated EEPROM parameters
  • Program/Erase parameter cycling
  • Program timing

Specifications

Main Flash memory sizeup to 512 Kbytes
Secondary Flash memory size32 Kbytes
Program/Erase cycles100 000 cycles
Data retention20-year
Programming basis16-bit half-word

Frequently asked questions

What is the main difference between external EEPROM and embedded Flash memory?

External EEPROM does not require a block erase operation to free up space before data can be rewritten, whereas Flash memory does.

Can the writing process of emulated EEPROM be interrupted by a CPU reset?

Yes, the writing can be interrupted by a power failure and by a CPU reset.

What is the data granularity for EEPROM emulation in STR91xF devices?

The data granularity is 16 bits.

Download PDF (245 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →