Reading and writing EEPROM
nohab
Posts: 96
Hi !
Please be patient with my newbie-questions!
Is there a way to use the EEPROM on the Propeller Protoborad, not only for storing the program but also to be able to save some parameters (from one program run·to another)?
Are there free memory or is the whole EEPROM used for the program? (Or does that depend on the size of the program?)
Are there SPIN-funktions to read and write to/from EEPROM (have checked the manual but didn't find anything obvious)
/Nicke
·
Please be patient with my newbie-questions!
Is there a way to use the EEPROM on the Propeller Protoborad, not only for storing the program but also to be able to save some parameters (from one program run·to another)?
Are there free memory or is the whole EEPROM used for the program? (Or does that depend on the size of the program?)
Are there SPIN-funktions to read and write to/from EEPROM (have checked the manual but didn't find anything obvious)
/Nicke
·
Comments
2) All EEPROM above 32K is not touched by the Propeller's download process. Once a program is downloaded into the EEPROM, all memory above the end of the program is available (and copied into RAM when the program is loaded from the EEPROM).
3) Yes. Look in the Propeller Object Exchange for "Basic I2C Driver" or "i2cObject". Either one will do what you want.
I checked the Basic I2C driver, which clarified a lot! I'll definitly make some tests with it.
Just a question for my understanding: In the comments there is a sample "eepromAddress = $7000"
Doesn't that point into the (later part of) boot area? Isnt' the free memory staring at $8000 ?
/Nicke