SLAAEB4 april   2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3106 , MSPM0G3107 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0L1105 , MSPM0L1106 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction
    1. 1.1 Difference Between EEPROM and On-Chip Flash
  4. 2Implementation
    1. 2.1 Principle
    2. 2.2 Header
  5. 3Software Description
    1. 3.1 Software Functionality and Flow
    2. 3.2 EEPROM Functions
      1. 3.2.1 Global Variables
      2. 3.2.2 EEPROM_TypeB_readDataItem
      3. 3.2.3 EEPROM_TypeB_findDataItem
      4. 3.2.4 EEPROM_TypeB_write
      5. 3.2.5 EEPROM_TypeB_transferDataItem
      6. 3.2.6 EEPROM_TypeB_eraseGroup
      7. 3.2.7 EEPROM_TypeB_init
    3. 3.3 Application Integration
    4. 3.4 EEPROM Emulation Memory Footprint
    5. 3.5 EEPROM Emulation Timing
  6. 4Application Aspects
    1. 4.1 Selection of Configurable Parameters
      1. 4.1.1 Number of Data Items
      2. 4.1.2 Cycling Capability
    2. 4.2 Recovery in Case of Power Loss
  7. 5References

Cycling Capability

Flash endurance is typically 10 thousand cycles, far less than real EEPROM. One feature of EEPROM emulation is that its endurance is extended compared to Flash.By dividing the Flash sector into multiple data items and writing data one by one, the Flash sector does not need to erase each time it writes, but only after it is full. And the equivalent endurance is further enhanced by the use of multiple Flash sectors.

Both the number of sectors in one group and the number of groups affect the equivalent erase/write capability. Since the number of sectors in one group has been determined above, the appropriate equivalent erase/write capability is now obtained by adjusting the number of groups.

Effective endurance = Number of data items user's data items × Number of groups × flash endurance

It is recommended that the user evaluate the cycling capability required by the application before selecting the appropriate number of groups.

For three user-configurable parameters, a recommended design process is as follows:

  1. Evaluate the number of data items required by application and select the appropriate number of sectors in one group.
  2. Evaluate the cycling capability required by application, and select the appropriate the number of groups.
  3. Select the appropriate Flash address

For example, if there is an application which needs to update data in EEPROM every 10 minutes. There are totally 20 variables, and 10 years of continuous service is guaranteed. Firstly, each group just need 1 sector (127 data items). Secondly, cycling capability required by application is 525600 cycles (10 years × 365 days × 24 hours × 6 cycles per hour). Nine groups are needed and the equivalent endurance is 571500 cycles.