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

From Flowcode Help
Jump to navigationJump to search
(XML import of only descriptive example files)
Line 20: Line 20:
  
 
==Examples==
 
==Examples==
''<span style="color:red;">No additional examples</span>''
 
  
 +
 +
Reads a value from location 0 in the EEPROM and writes back the value incremented by one.
 +
Starting and stopping the simulation or resetting the microcontroller will allow the program to resume counting from where it left off.
 +
 +
[[File:EEPROM.fcfx]]
  
 
==Downloadable macro reference==
 
==Downloadable macro reference==

Revision as of 15:44, 3 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. Starting and stopping the simulation or resetting the microcontroller will allow the program to resume counting from where it left off.

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