Storing a value in memory
TE44
Posts: 42
Hello all -
············ Is there a nice object out there to store a value in the eeprom and recall it -
·similar to the Write/Read option in a basic stamp. Value has·to be stored·and recalled after
·power cycle·...·
············ Is there a nice object out there to store a value in the eeprom and recall it -
·similar to the Write/Read option in a basic stamp. Value has·to be stored·and recalled after
·power cycle·...·
Comments
http://ww1.parallax.com/Default.aspx?tabid=65
····· Thanks for that .... I was hoping there was a one/two liner for the onboard (propeller demo board)·eeprom pretty much like a read/write on a Basic Stamp - rather than·scan the i2c to discover it -·demo uses LCD object for output - would have to change that to·vga text to view·it ... so will have to free time to mod that.·That said was also wondering if the eeprom was·programmed IDE - F11·is the value overwritten·?
2) The routines in the I2C object are almost one liners. Using the WriteLocation routine, you can write a byte in one statement.
You just have to follow that with a pause of 5ms to allow the EEPROM to finish writing. There are ways to speed this up a little,
but that's almost as simple as using the equivalent Stamp statement.
3) With the Prop Protoboard or the Hydra, the basic board comes with more EEPROM and you can easily add more if you're using a PropStick.
With other boards, you may need to use other pins (than the ones used with the boot EEPROM - 28/29).
····· Nice one was having difficulty - no delay ......
cheers
···· I noticed you have a nice minimal i2c routine - what would you suggest the best method is to store a dec value say '3605' (I assume divided into 2 bytes) in the boot eeprom - using your·example ?
I am new to i2c and thought I had it in the bag - I don't !!
Appreciate your input..
TE