Static RAM?
Eli
Posts: 3
Hello,
I was wondering if the propeller chip has any free EEPROM or static RAM space available. I want to be able to save a user-given value so that it is not erased when the processor is reset. Any ideas or suggestions regarding this would be greatly appreciated. Thanks.
--Eli
I was wondering if the propeller chip has any free EEPROM or static RAM space available. I want to be able to save a user-given value so that it is not erased when the processor is reset. Any ideas or suggestions regarding this would be greatly appreciated. Thanks.
--Eli
Comments
http://www.rayslogic.com/propeller/Programming/RaysStuff/RaysStuff.htm
I think it's part of the PE Education kit, if you want to search for that...
See example code from a small f\project that had to save and reload preset timers values
CON MaxTimes = 6 'Allow for 6 timer presets
VAR Long Time[noparse][[/noparse]MaxTimes] 'Timers preset value
OBJ
Eeprom : "Eeprom"
PRI SaveVars '' Save timers to eeprom
Eeprom.VarBackup(@Time,@Time+4*MaxTimes-1)
ser.str(string( CR, LF, " Timers saved.. ", CR, LF))
PRI LoadVars | n '' Load timers from eeprom
eeprom.VarRestore(@Time,@Time+4*MaxTimes-1)