Difference between revisions of "Component: EEPROM (Storage)"
(XML import) |
(XML import) |
||
Line 15: | Line 15: | ||
− | ==[[ | + | ==[[File:Component Icon dcbf571f_a6fa_402d_bdd4_be00cca4070f.png|Image]] EEPROM component== |
A means of reading data from and writing data to the EEPROM memory onboard the microcontroller. | 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. | Fully functional with simulation but the target microcontroller must have EEPROM memory available to allow compilation to work. |
Revision as of 13:05, 16 January 2014
Author | Matrix Ltd |
Version | 1.1 |
Category | Storage |
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.
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.
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
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 write the data to
- 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
EE Size
This property is of type Line of text and can be referenced with the variable name EESize.
Number of memory locations available in EEPROM onboard the target microcontroller.
EE Bit Depth
This property is of type Line of text and can be referenced with the variable name EEbitdepth.
Number of bits in each EEPROM memory location onboard the target microcontroller.