Hello there,
Recently i was testing the DS3231 breakout board and because that also has this EEPROM on it i thought i would test out the EEPROM as well.
This EEPROM has 4096 bytes and they can be written byte by byte or in page style. I usually need to write one byte at a time so i am looking into the actual write cycle time to store (save) one byte only.
The write cycle time is the time it takes for the EEPROM to actually get the data written so that when it is read back the new byte data will be recovered. The question becomes how long this actually takes, because the data sheet says for a 5v power supply "10 milliseconds max" so i write a program to measure the microseconds it takes to return from the "WriteByte" function i wrote using the Wire library.
What is surprising is the time it takes to return from a call to the write function clocks in at 432 microseconds. There's a little overhead for the call, but it is probably not much, so most of that number is probably the write cycle time, but i am not sure about any of this yet.
So the question is, has anyone else attempted to measure this time ?
I know i could turn to a more statistical measuring technique, but i dont want to have to write a ton of data just to get this tested. I need to know how long the program will hang while it writes a couple bytes to the EEPROM.
Any ideas or suggestions?
Thanks.
Recently i was testing the DS3231 breakout board and because that also has this EEPROM on it i thought i would test out the EEPROM as well.
This EEPROM has 4096 bytes and they can be written byte by byte or in page style. I usually need to write one byte at a time so i am looking into the actual write cycle time to store (save) one byte only.
The write cycle time is the time it takes for the EEPROM to actually get the data written so that when it is read back the new byte data will be recovered. The question becomes how long this actually takes, because the data sheet says for a 5v power supply "10 milliseconds max" so i write a program to measure the microseconds it takes to return from the "WriteByte" function i wrote using the Wire library.
What is surprising is the time it takes to return from a call to the write function clocks in at 432 microseconds. There's a little overhead for the call, but it is probably not much, so most of that number is probably the write cycle time, but i am not sure about any of this yet.
So the question is, has anyone else attempted to measure this time ?
I know i could turn to a more statistical measuring technique, but i dont want to have to write a ton of data just to get this tested. I need to know how long the program will hang while it writes a couple bytes to the EEPROM.
Any ideas or suggestions?
Thanks.