-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on the delay of 10 ms when writing to the EEPROM #20
Comments
Yes. You could potentially reduce the 10 ms delay by instead polling the MSB of the last byte written, and waiting for the MSB inversion to end, and then proceeding. However, how much time would be saved by the polling and waiting might not be all that significant. This issue is partially answered/explained by this comment by Greg Clare under the video:
This is also backed up by at least two further comments in the main comment thread (not under the above comment):
That said, if one reads the correct datasheet, for the CAT28C16AP-25 used in the video, tWC (max) is given to be 10 ms, and under Byte Write it is stated:
So, for this particular EEPROM the delay of 10 ms is actually correct and appropriate. |
In the video where you go through how to build an EEPROM programmer with the Arduino Uno you ended up using
delay(10);
at the end of thewriteEEPROM()
function. Did you come to any understanding why this was the case?What if you want to write all the 2048 bytes, then it would take almost 20 seconds and it would be even worse for an EEPROM with 128 or 256 kbits.
Would it be possible to optimize the
writeEEPROM()
function to let it take an array of bytes and put thedelay(10)
at the end of writing all the bytes?The text was updated successfully, but these errors were encountered: