Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN2244 Datasheet(PDF) 5 Page - STMicroelectronics

Part # AN2244
Description  The ST10F27x MCUs provide 0.18關m embedded true Flash technology
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2244 Datasheet(HTML) 5 Page - STMicroelectronics

  AN2244 Datasheet HTML 1Page - STMicroelectronics AN2244 Datasheet HTML 2Page - STMicroelectronics AN2244 Datasheet HTML 3Page - STMicroelectronics AN2244 Datasheet HTML 4Page - STMicroelectronics AN2244 Datasheet HTML 5Page - STMicroelectronics AN2244 Datasheet HTML 6Page - STMicroelectronics AN2244 Datasheet HTML 7Page - STMicroelectronics AN2244 Datasheet HTML 8Page - STMicroelectronics AN2244 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 5 / 17 page
background image
AN2244
3 Application example: EEPROM emulation using ST10F27x Flash library
5/17
3
Application example: EEPROM emulation using
ST10F27x Flash library
3.1
Purpose
The purpose of this example is to show how a portion of the ST10F27x embedded Flash
can be used to replace a serial EEPROM to store and update non volatile data in order to
save the cost of an external EEPROM.
3.2
Principle
The implementation shown in this application note requires that a minimum of two Flash
sectors of identical size are allocated to non volatile data storage. In this example, the sector
1 and sector 2, 8 kbytes each, of the Flash bank 0 are used.
Those sectors are write accessed in 32-bit.
A header field occupying the first 32-bit word of each sector represents the sector’s status.
In order to use Flash to store several non volatile variables, we need to divide the two
sectors identically into several parts, one per variable.
For each variable, the size of the memory space is allocated according to its update
frequency. The first 32-bit value of each variable is stored at the base address of its
allocated memory space. When updated, the new value is stored at the next available
address: base address + 4, base address + 8 and so on until no room remains from its
allocated memory.
Example:
In the sector 1, we assume 3 variables: A, B and C will be stored and updated.
The first variable A value is stored at t0 and variable A(t) is updated every
The second variable B value is stored at t1 and variable B(t) is updated every
The third variable C value is stored at t2 and variable C(t) is updated every
In a typical application, the majority of non volatile data is updated infrequently and a few is
updated more frequently.
Let’s consider tA < tB< tC , this means that A is updated more than B which is updated more
than C so more memory space should be allocated to A and B than C.
In this application, sector 1 is divided as follows:
●
0x2000-0x2FFF memory space will be allocated to variable A
●
0x3000-0x3FEB memory space will be allocated to variable B
●
0x3FEC-0x3FFF memory space will be allocated to variable C
t
A
t
B
t
C



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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