Just wondering if someone could suggest a workaround for this snippet of pseudo code:
if ( eeif == 1 ) { eeif = 0 // write eeprom }
This piece of code (written in assembly) goes into the main loop of my program and allows the main loop to continue executing while the EEPROM takes its leisurely 8ms to write.
The problem is that on power-up eeif == 0, and this code can never execute because eeif is only asserted at the end of a write. The only time writing can take place is via this code.
I thought about doing a dummy write on initialization as a brute force solution to assert eeif but it seems to me a waste of an eeprom cell.