Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

AN2077 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
MFG CO.
AN2077
ST-Microelectronics
STMicroelectronics ST-Microelectronics
'AN2077' PDF : 19 Pages View PDF
EEPROM Emulation with STR71x
4 SOFTWARE EXAMPLE
This software example is intended to illustrate how to implement some aspects of the
EEPROM emulation concept.
This software implements the following features:
– Data-set storage
– Status bit for Data-set
– Status bit for active Flash sector
– Read While Write using the sectors of the second bank
It also provides three output functions:
– EEPROM_Init
– EEPROM_DataRead
– EEPROM_DataWrite
4.1 SOFTWARE EXAMPLE CONCEPT
The software example is based on fixed-length Data-sets and 2 Flash sectors
This software example allows you to write from 1 to 1984 Data-Sets per sector. The configu-
ration of the number of Data-Set can be set in the E3PROM.h file.
For example, to configure the max Data-Set to 100 for the two sectors, configure
Max_Count_1 and Max_Count_2 in the E3PROM.h file as follows:
:
/* Max status bits for data set */
#define Max_Count_1
35 /* The number of Data-Sets in the first sector */
#define Max_Count_2
35 /* the number of Data-Sets in the second sector */
Note: You can configure the max. Data-Set for each sector independently.
12/19
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]