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
Header is designed to manage the group. By checking the header of a single group, the status of the group can be determined. By checking the headers of all groups, the active group can be found and the format of EEPROM emulation can be checked.
Each group has a header to show its status. Header is set to 8 bytes with 3 flags. Depending on the flags, there are four record status in total. The relationship between flags and record status is showed in Table 2-1.
Group Status | Description | Active flag | End of Receiving Flag | Erasing Flag |
---|---|---|---|---|
Erased | Default state after erase | 0xFFFF | 0xFFFF | 0xFFFF |
Receiving | When transferring data items, Receiving group receives latest items from the full group | 0x0000 | 0xFFFF | 0xFFFF |
Active | Active group is the group not full of items, and it is waiting for new items to be written | 0x0000 | 0x0000 | 0xFFFF |
Erasing | Erasing group is the group waiting to be erased | - | - | 0x0000 |
Figure 2-3 shows how states translate to each other. All flags are erased at first. If erased group is written data item to, it will be changed to Active and waiting to be written.
If the group is full, next group will be changed to Receiving, and the latest data items are transferred to the Receiving group. After transfer, the old full group will be changed to Erasing and waiting to be erased. The Receiving group will be Active then.