Maker Pro
Maker Pro

Brown out detection for Arduino mega 2560

Harald Kapp

Moderator
Moderator
According to chapters 8.3.2 and 12.2.3 the built-in brown out detector, when enabled, activates RESET, not an interrupt.
You could supervise Vcc externally and issue an interrupt. Set the threshold of the external supervising circuit higher than the level of the internal brown out detector. Provide enough bufffer capacity to allow the AVR to do some useful stuff when triggered by the external interrupt before the internal brown out detector is triggered by the falling voltage on Vcc.
 
According to chapters 8.3.2 and 12.2.3 the built-in brown out detector, when enabled, activates RESET, not an interrupt.
You could supervise Vcc externally and issue an interrupt. Set the threshold of the external supervising circuit higher than the level of the internal brown out detector. Provide enough bufffer capacity to allow the AVR to do some useful stuff when triggered by the external interrupt before the internal brown out detector is triggered by the falling voltage on Vcc.

Hi Harald,

Thanks for the reply! I guess i could do this but it's probably a bit to complex i was hoping on a simple line of code but it seems that that ain't possible.

Thanks for your help
 
Top