storing data on the EEPROM
xsmoker
Posts: 9
Is it possible to record/read just a few bytes to the eeprom so my code can have a starting point on powerup? Has this been discussed?
Thanks,
X
Thanks,
X
Comments
Basically, everything from the end of your program (as shown by the Propeller Tool memory map) to the end of the EEPROM is available. If you download a new program to the EEPROM, the first 32K (or the entire 32K) of the EEPROM will be erased, so keep that in mind. There are other fancier schemes, but I suggest that you use the last few bytes of the EEPROM if 32K or the first few bytes of the 2nd 32K if you have a 64K EEPROM (like on the Protoboard).
X
While simplistic, it shows just how to store a value at program time that can be read and modified at run time so that it is updated each boot.