Hi all, first post --- be gentle
I have a project where a PIC12F1840 with some LEDs are powered by 2 coin cell CR2032 batteries. I'm gathering data and storing to EEPROM every minute. The device will eventually run out of batteries and I notice the EEPROM data often gets corrupted, I'm guessing the voltage gets too low during an EEPROM write.
Is there a graceful way to stop EEPROM writing before the power gets too low?
The challenge is that I've exhausted all I/O pins for digital input and output so hardware modification is not an option, I need a reliable software routine that stops EEPROM writes when the battery is about run out (battery mileage may vary so a set timer isn't suitable).
Any expertise in this matter would be much appreciated.
Thank you