I've a small device based on ATmega8A which is powered with 3 AAA batteries. Most of the time the MCU is in sleep mode. My program writes and reads from EEPROM (I've seen messages about EEPROM value corruptions due brown out, so I note this).
I've a couple of questions:
- Should I enable BOD fuses to prevent EEPROM corruption when batteries get low? Which value?
- Is there any simple way to detect that batteries became low? Will BOD help to stop MCU in such situation?
Thanks in advance!