Writing to the EEPROM for storage
Sniper King
Posts: 221
Can we write to the eeprom for data storage.· maybe I am missing something.· Coming from the Basic Stamp side, I could PUT and GET.· Is there something we have as propeller people?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·- Was it pin 11 or 26?· Hmmm....··I think the smell of smoke tells the whole story.· Must be 26.
Michael King
Application Engineer
R&D
Digital Technology Group
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·- Was it pin 11 or 26?· Hmmm....··I think the smell of smoke tells the whole story.· Must be 26.
Michael King
Application Engineer
R&D
Digital Technology Group
Comments
There are several objects in the Propeller Object Exchange that provide routines to read / write EEPROM. The "i2cObject" is the most general set of routines for a variety of I2C devices. The "Basic I2C Driver" is mostly for use with EEPROMs.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·- Was it pin 11 or 26?· Hmmm....··I think the smell of smoke tells the whole story.· Must be 26.
Michael King
Application Engineer
R&D
Digital Technology Group
There are also ReadLong and WriteLong methods that call ReadPage and WritePage. You can also use those. Take a look at them, they're really simple interfaces to ReadPage and WritePage. Since pretty much any EEPROM will finish writing in about 5ms, you could just wait that long after an EEPROM write before you try to do anything else with the EEPROM.
Post Edited (Mike Green) : 7/24/2008 5:45:42 PM GMT