Eeprom Panel

Modified on Wed, 04 Jan 2023 at 08:25 PM

The EEPROM Panel lets you view and edit the content of your Arduino EEPROM easily. It lets you manage data in the EEPROM in 2 different ways :

  • By using memory cells
  • By using data types (Boolean, Byte, Integer, Long, Float, and String)


Refer to this example: Using the EEPROM Panel.


Open the EEPROM Panel (CTRL+E or Tools\EEPROM). 

 




Space Selection Panel


In the Space Selection Panel, select :

  • Cell if you want to display memory cells.
  • A data type if you want to display data stored using this data type.





Content Panel

EEPROM data are then displayed in the Content Panel, according to your Space selection.




Selected Space : Cell

The Content Panel displays the memory cells


Each cell is located by an address and has a size of 1 byte.



Selected Space : Data Type

The Content Panel displays data stored as Booleans, Bytes, Integers, Longs, Floats, or Strings.


These data are stored in a pre-defined area of the memory space called the User Space. This area is booked and managed by our Arduino library. The User Space is divided into 6 sub-spaces, one for each data type. Each sub-space is used to store a specific data type and only contains elements of this specific data type. 


Each element is located by an index and its size depends on its data type. It will 1 or several memory cells to store its value, depending on its data type:

  • 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


Refer to this article to see how to customize the User Space : Configuring the User Space.



Navigating through the data

Use either the navigation arrows or the address/index selector to navigate through the data:

  • Cell: you navigate through the memorycells using their addresses.
  • Data Type: you navigate through the space elements using their indexes.



Setting values

Enter a new value and press ENTER to validate your input



Finding the address of a space element

A seen above, each space element stores its value in 1 or several memory cells, depending on its data type. For instance, a Long element stores its value in 4 cells. If you want to know the addresses of these cells, put your mouse cursor over the index of the Long element. A tooltip will appear showing the address of the main cell (the one that holds the Least Significant Bits). 


 

If you put your mouse cursor over the address of one of the 4 cells, the tooltip will show the index and value of the Long element. Notice that the main cell is colored in blue to let you know that it refers to a Long element.





Global Actions Panel


Read ALL

Click on “Read ALL” to read all the EEPROM content. Note that this action is performed automatically once by HITIPanel at communication start-up with your Arduino.



Clear ALL to 0

If this is the first time you access and see the content of your EEPROM, you may be surprised to find out that all the cells have their bits set to 1 instead of 0. This is absolutely normal, EEPROMs are produced and shipped in this state. However, you surely prefer to work with all the bits set to 0. To do that, click on “Clear ALL to 0” to set all the bits to 0. 



You should notice that the writing process takes few seconds. Again, this is normal as writing to a cell is extremely slow


Also, note that in order to save EEPROM lifetime, writing to a cell is only performed if the data inside this cell needs being updated. Which means that if you click a second time on “Clear ALL to 0”, no writing will be performed.


Set ALL to 1

If desired, you can set all bits to 1 by clicking on “Set ALL to 1”. As for “Clear ALL to 0”, this operation can take a while to complete.



 



 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article