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