Storing info to the EEPROM
Phil_P
Posts: 1
Hi Everyone,
I'm looking to develop an object that will allow users to store information within the EEPROM.
Essentially I'm looking to take RC decay data off of a pin and store that data into EEPROM for comparison purposes as a later time.
I'm guessing I:
1) Get the resistor into the proper position.
2) Calculate the RC decay for the resistor position.
3) Push a button (on a different pin that's listening) to record the RC data.
4) Then write that data to EEPROM (somehow).
At a later time, I'm going to read the previously stored RC decay data and compare it to the current resistor settings. This way I can ensure the pot (resistor) is back in exactly the same (or relatively close) position.
Does anyone have some sample code or know of an object that allows this type of functionality?
Thanks,
Phil
I'm looking to develop an object that will allow users to store information within the EEPROM.
Essentially I'm looking to take RC decay data off of a pin and store that data into EEPROM for comparison purposes as a later time.
I'm guessing I:
1) Get the resistor into the proper position.
2) Calculate the RC decay for the resistor position.
3) Push a button (on a different pin that's listening) to record the RC data.
4) Then write that data to EEPROM (somehow).
At a later time, I'm going to read the previously stored RC decay data and compare it to the current resistor settings. This way I can ensure the pot (resistor) is back in exactly the same (or relatively close) position.
Does anyone have some sample code or know of an object that allows this type of functionality?
Thanks,
Phil
Comments
File: Propeller Eeprom.spin
Version: 0.6
Developed for forthcoming Propeller Education Kit Lab: EEPROM Datalogging and I2C
It has very simple routines to save data to the eeprom...
Where is this file?!
Great answers (you and jazzed) to Pascal22, too. Amazing how much more interesting the questions and answers are now.