I am using an ATTINY24V-10PU running at 1Mhz (default) with a 3V battery power supply--2xAAA cells. I would like to experiment with brown-out detection (BOD), thus, programmed the fuse-bits to have BOD in effect at 1.8V. BOD circuitry is probably the same for all Atmel AVR chips, e.g., same for ATMEGA series, etc.
Ok, my question is: Is there a way AVR would notify you when the BOD has occurred? This way, at least, I can flash a red LED to tell the user that the gadget is running low on battery. It seems like the key is the RESET functionality (vector) kicks in when a BOD happens. So, do I need to write a routine to have the RESET vector point to my routine and do the LED thing? Then do a RESET? Thanks.
So far I have read the below tidbits in the spec.:
Keep the AVR RESET active (low) during periods of insufficient power supply voltage. This can be done by enabling the internal Brown-out Detector (BOD). ... When the Brown-out Detector (BOD) is enabled by BODLEVEL fuses (see Table 19-4 on page 160), the BOD is actively monitoring the supply voltage during a sleep period. In some devices it is possible to save power by disabling the BOD by software in Power-Down and Stand-By sleep modes. The sleep mode power consumption will then be at the same level as when BOD is globally disabled by fuses.