DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

AN2061 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
AN2061
ST-Microelectronics
STMicroelectronics ST-Microelectronics
AN2061 Datasheet PDF : 15 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
AN2061
3 EEPROM EMULATION CONCEPT
3.1 Principle
Different concepts are described in the literature. Each of them rely on partitioning a bank of
the Flash into several Data-sets and on using control bits (per Flash bank and per Data-set)
to compute which Flash bank and which Data-set is the valid one. For variable-length Data-
sets, linked data-list structures should be considered.
The method described in this document is based on fixed-length Data-sets and 2 Flash banks.
Figure 1. Bank partitioning for emulated EEPROM
ST10F2xx Flash bank-x
Data-set-n
ST10F2xx Flash bank-y
Data-set-m
Area for
Data-set storage
Status bits for
Data-set-n
Area for
status bit storage
(Data-set bits and
Flash bank bits)
Data-set-2
Data-set-1
Data-set-0
n
210
Data-set-2
Data-set-1
Data-set-0
m
210
switch between each bank
(erase one when using the other)
Variable update frequency
The variable update frequency may set high requirements on the program / erase cycle of the
Flash and on the Flash features (ex: Read-While-Write). Those features are analysed in de-
tails in the following pages.
3.2 Program/erase cycle
The requirements on program / erase cycles are computed by dividing the needed number of
erase cycles by the total number of Data-sets in the Flash banks (example with Figure 1: n+m).
When this number is still higher than the Flash write/erase endurance characteristics, a closer
analysis is needed to understand when the Data-sets are updated:
– when Data-sets need to be updated during operation, it is proposed to use a buffer in RAM
and to save the data before shutting-down the microcontroller.
– when Data-sets are updated only before power-down sequence, it is proposed to increase
the size of the Flash bank or to use a 3rd bank (see additional information in Chapter 4).
6/15

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]