Difference between revisions of "Component: EEPROM (EEPROM)"
Line 93: | Line 93: | ||
Example showing how to store and retrieve strings to and from the EEPROM memory. | Example showing how to store and retrieve strings to and from the EEPROM memory. | ||
{{Fcfile|StringEE.fcfx|EEStrings}} | {{Fcfile|StringEE.fcfx|EEStrings}} | ||
+ | |||
+ | |||
Line 98: | Line 100: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===WriteFloat=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 126: | Line 129: | ||
+ | ===ReadInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 149: | Line 153: | ||
+ | ===ReadFloat=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 172: | Line 177: | ||
+ | ===WriteByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 195: | Line 201: | ||
+ | ===WriteInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 223: | Line 230: | ||
+ | ===ReadString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 246: | Line 254: | ||
+ | ===Read=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 264: | Line 273: | ||
+ | ===ReadLong=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 287: | Line 297: | ||
+ | ===WriteString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 315: | Line 326: | ||
+ | ===Write=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 338: | Line 350: | ||
+ | ===ReadByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 361: | Line 374: | ||
+ | ===WriteLong=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:49, 3 February 2023
Author | Matrix Ltd |
Version | 1.2 |
Category | EEPROM |
Contents
EEPROM component
A means of reading data from and writing data to the EEPROM memory onboard the microcontroller. Fully functional with simulation but the target microcontroller must have EEPROM memory available to allow compilation to work.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EEPROM.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EEPROM.fcfx
Detailed description
No detailed description exists yet for this component
Examples
The Console window can be used to show the contents of EE memory during simulation.
Read and Write Bytes
Reads a value from location 0 in the EEPROM and writes back the value incremented by one, the values are displayed on to a LCD.
Starting and stopping the simulation or resetting the microcontroller will allow the program to resume counting from where it left off as opposed to a standard RAM based variable which would reset to an undetermined value.
EEPROM
Read and Write Ints
Reads a value from locations 0,1 in the EEPROM and writes back the value incremented by one, the values are displayed on to a LCD.
Starting and stopping the simulation or resetting the microcontroller will allow the program to resume counting from where it left off as opposed to a standard RAM based variable which would reset to an undetermined value.
EEPROM_INT
String variables in EE Memory
Example showing how to store and retrieve strings to and from the EEPROM memory.
EEStrings
Macro reference
WriteFloat
ReadInt
ReadFloat
WriteByte
WriteInt
ReadString
Read
![]() |
Read |
Reads a packet of bits from the EEPROM The number of bits read is 8 or 16, depending on the platform | |
![]() |
Address |
The address, in elements, to read the data from | |
![]() |
Return |
ReadLong
WriteString
Write
ReadByte
WriteLong