Storing to EEPROM
TC
Posts: 1,019
Hello all,
I know this will be an easy question to answer for most of you.
I just bought a 24LC512 EEPROM for my prop, I was planing to use the extra space for storage of data that the prop could use. I not saying programing space, but parameters for objects. I should've thought ahead, but to late. I know there has to be a way to read and write to locations $1_000 to $8_000. Would I use a I2C object, and make the address %1010000 ? Or is there another way of doing it?
Thanks
TC
I know this will be an easy question to answer for most of you.
I just bought a 24LC512 EEPROM for my prop, I was planing to use the extra space for storage of data that the prop could use. I not saying programing space, but parameters for objects. I should've thought ahead, but to late. I know there has to be a way to read and write to locations $1_000 to $8_000. Would I use a I2C object, and make the address %1010000 ? Or is there another way of doing it?
Thanks
TC
Comments
http://obex.parallax.com/object/23
http://obex.parallax.com/object/23
Very easy to use..
Massimo
Great Thank you both.
If I may ask, What is "arbitary page"? and what could it be used for?
To change any data a whole page has to be erased and then rewritten. Even if you are only updating a BYTE, WORD, or LONG within the page.
So working on pages will be much quicker if you are updating a lot of BYTES or whatever within it.
"arbitary page" just means you can read and write any page you like when you like. See dictionary.
Ahh, now I get it. Thank you.
Out of memory it is something like that.. if you increase the index in the page and go over the end of the page you start from the beginning of the same page, not in the next.
Massimo
There are a couple methods in the object that help with the paging issue. For the 24x512, the page size is 128 bytes.
Thank You, I am new to using the EEPROM like this, and I would've never thought of that.
Wonderful, Thank you very much.