Forum: µC & Digital Electronics Problem when building Brownout Detector

von Xiangyu C. (xchen)

Rate this post
not useful
Dear all,

here I have some questions about the brownout detector. I haven't any 
experience of interrupt, maybe I've done it with some dummy thought.

I have an ATMEL SAMC21XPLAINED Board in hand, and i want to try the 
brownout detection interrupt. First I configure the VDDBOD in the eFuse 
(Enable, Hysteresis, Level). From the generated atmel start project 
source code, I found a system_handler, as said in commends, which is for 
the interrupt of Power manager, Main clock, osc controller, protection 
access controller and SUPC(supply controller). The SUCP is theoretically 
what i need for the brownout detection.

Then I built a System_handler function, aiming to store the test data 
into EEPROM and see a short blink of LED, as below:

void SYSTEM_Handler()


The current situation is, every time when I cut off the supply, and want 
to turn it on again to check its EEPROM. Then I found the LED blinks 
after the power on, that means the SYSTEM_Handler detect in the 
meanwhile the restart. My assumption is that the mentioned interrupt 
source above have the same priority. In this case how can I set that the 
Handler just about the Brownout, not others? Or if I understand it 
totally wrong, how should I configure and call the Brownout Function?

Everyone who interested in this

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.