128k EEPROM for data storage
max72
Posts: 1,155
I would like to temporarily store data on a memory, and send it back when necessary.
Worst case would be 4 writes per hour.
My idea is to use the bottom 32k for the SD loader (say a firmware upgrade).
The next 32k for the program and what is left for data storage.
Is an eeprom like 24LC1025 suitable for the task? 1 million write cycles looks leaving plenty of room (28 years worst case is quite comfortable if I'm right).
Is it propeller compatible?
I was considering to use the SD card for data storage, but I cannot be sure the card will be inserted.
Thanks in advance,
Massimo
Worst case would be 4 writes per hour.
My idea is to use the bottom 32k for the SD loader (say a firmware upgrade).
The next 32k for the program and what is left for data storage.
Is an eeprom like 24LC1025 suitable for the task? 1 million write cycles looks leaving plenty of room (28 years worst case is quite comfortable if I'm right).
Is it propeller compatible?
I was considering to use the SD card for data storage, but I cannot be sure the card will be inserted.
Thanks in advance,
Massimo
Comments
You can take a look at this part#
http://forums.parallax.com/showthread.php?136690
You only need a 64kB EEPROM (like what comes with most Propeller boards) to have 32kB of extra space you can use...
Mike Green also has I2C code in OBEX.
Ok, I re-read your question...
I'd be interested to know if that simple PE -kit code would work above 64kB...
I have problems understanding the issue about contiguous blocks and address, but now I have a clue (and a well tested model).
Time to study the datasheet...
Massimo
The PEK EEPORM object needs to be modified to use a second chip or chips above 64K. I've modified it to use multiple chips but I think using Mike's I2C object is a better option.
I'll post my multi-chip version if anyone's interested. Again, I think you'd be better off using Mike's code though.
I beleive the AT24C1024 chip will give contiguous memory blocks using Mike's object.
The P0 and B0 bits are internal page/block select bits, which are used as the 17th internal address bit. The '1024 provides a contiguous and linear address space within one chip because the page address bit is the least significant of the 3-bit group.
While SD is a viable solution I would like to use this project to understand eeprom usage, and for sure I'm already learning a lot.
Thanks again,
Massimo