i've some problem implementing brown-out detection BOD33 on my sam4lc. This is the code:
BSCIF->BSCIF_BOD33CTRL = BSCIF_BOD33CTRL_EN | BSCIF_BOD33CTRL_HYST | BSCIF_BOD33CTRL_FCD;
BSCIF->BSCIF_BOD33CTRL |= BSCIF_BOD33CTRL_ACTION(1);
When the power decreases under 2,9V i can see BSCIF_PCLKSR_33DET bit at 1. But no RESET take place.
Where is the problem?
Could someone help me please?
Discussion around product based on ARM Cortex M4 core.
2 posts • Page 1 of 1
I'm working on a similar issue now on a samd20j18. You need to enable the fuses to support BOD - see Device Programming window, select Fuses to read back you fuses. This needs to be done before you try to get the BOD code to work. You may also need to configure the BOD in code space, irrespective of you fuses... but I'm still figuring that bit out. Anyway, off to post on my issue, relating to the calculation of the BOD level.
Who is online
Users browsing this forum: No registered users and 2 guests