Difference between revisions of "Component: EEPROM (Storage)"

From Flowcode Help
Jump to navigationJump to search
Line 24: Line 24:
 
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.
 
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.
+
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.
  
 
[[File:EEPROM.fcfx]]
 
[[File:EEPROM.fcfx]]

Revision as of 15:52, 5 December 2013


Author Matrix Ltd
Version 1.1
Category Storage


Image EEPROM component

An EEPROM front end for writing data to persistant storage


Examples

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.

File:EEPROM.fcfx

Downloadable macro reference

Read

Reads a packet of bits from the EEPROM

The number of bits read is 8 or 16, depending on the platform

Parameters

UINT Address
The address, in elements, to read the data from


Return value

UINT


Write

Writes a packet of bits from the EEPROM

The number of bits written is 8 or 16, depending on the platform

Parameters

UINT Address
The address, in elements, to read the data from
UINT Value
The 8 or 16 bit value to store in EEPROM


Return value

This call does not return a value


Simulation macro reference

This component does not contain any simulation macros


Property reference

This component does not contain any properties