Writing to EEPROM
okurka11
Posts: 3
Hi All,
is there any code, which allows me to write data directly from Propeller to EEPROM? I need to develop some emergency procedure, which saves collected data (4kB stored in RAM) in case of power outage. This must be done very quickly and saving to external SD card is slow. I was also thinking about replacing of 24LC256 with FM24V05 (512kbits) (RAMTRON). Is it possible?
Many Thanks
is there any code, which allows me to write data directly from Propeller to EEPROM? I need to develop some emergency procedure, which saves collected data (4kB stored in RAM) in case of power outage. This must be done very quickly and saving to external SD card is slow. I was also thinking about replacing of 24LC256 with FM24V05 (512kbits) (RAMTRON). Is it possible?
Many Thanks
Comments
There are several objects in the Object Exchange that will do this. The simplest to use is "Basic I2C Driver".
It will take some time to write 4kB of data. EEPROMs have "pages" where an entire page is written at one time.
These are anywhere from 64 to 256 bytes depending on the EEPROM size and the manufacturer and writing a
page or a single location takes about 10ms. With 128 byte pages, it would take around 300ms to write 4kB.
RAMTRON FRAM is much faster. The FM24V05 should work.
So, do you think that I can replace 24LC256 with FM24V05 part for part without any changes and propeller will be able to boot from it and I will be able to use space above 32KB as fast data storage?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering