+karri Posted November 4, 2021 Share Posted November 4, 2021 Most of my code appears to hang on various systems that lack the eeprom. I wonder if anyone has written a driver for 93c46 chip with a built-in timeout? Currently the driver waits for a handshake signal to see that the write cycle is complete. But according to the datasheet the maximum time for a write is 2ms. So I was thinking of just adding a few NOP's to delay the process slightly and skip the polling. The tick is 62.5 ns so I may need to sleep for 32000 ticks. What is the best way? Interrupt after 32000 ticks, use a timer, NOPs, listen on VBL interrupts and write one word per VBL? This could also be handled in user space. write(addr, val); delay(); if (read(addr) != val) return NO_EEPROM; return OK; Any ideas? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.