Eeprom management

Our base library lets you view and manage the EEPROM content using the EEPROM Panel and makes it extremely easy to read and write data in the EEPROM from your program.

Refer to section What is the EEPROM? to learn more about EEPROM.

 

Global Space

In HITIPanel, we call the whole EEPROM memory space the Global Space. This space contains all the memory cells. Each cell is located with an address and has a size of 1 byte.

 

User Space

In order to simplify access and storage to your data, our EEPROM library stores your data in an area of the Global Space called the User Space.

The User Space is organized by data type and is split into 6 sub-spaces (Boolean, Byte, Integer, Long, Float, String). Each sub-space is used to store a specific data type and then only contains elements of this specific data type. Each element is located with an index and its size depends on the data type. Thus, each element may use one or more memory cells to store its value:

  • Boolean element  : 1-bit long        => 1 cell can contain 8 Boolean elements
  • Byte element        : 1-byte long     => 1 cell
  • Integer element    : 2-bytes long   => 2 cells
  • Long element       : 4-bytes long   => 4 cells
  • Float element       : 4-bytes long   => 4 cells
  • String element     : depends on max String length

 

User Space Configuration

The size of a sub-space can be configured during the setup(). This size is specified in bytes and represents the number of cells occupied by the sub-space. The max number of elements contained in the sub-space will depend on the sub-space size and data type.

You  can either use our default configuration of the User Space or you can perform your own.

 

 

Was this article helpful?
0 out of 0 found this helpful