LPC82x Brownout Detection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC82x Brownout Detection

92 Views
mwp_nxp
Contributor III

Hi all,

POWER_SetBodLevel(kBod_ResetLevel1, kBod_InterruptLevel2, true);
EnableIRQ(BOD_IRQn);

When VCC drops below 2.54V, the Int is triggered.

How do i detect when VCC has returned back above 2.54V?

 

Also, the LPC82x user manual on page 56 states in relation to BOD: 

The interrupt signal can be enabled for interrupt in the Interrupt Enable Register in the
NVIC (see Table 6) in order to cause a CPU interrupt; if not, software can monitor the
signal by reading a dedicated status register.

What is the status register that is mentioned? I cannot find any mention of it anywhere else.

 

Thanks in advance.

0 Kudos
Reply
3 Replies

71 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose the UM10800.pdf is incorrect, there is not dedicated BOD status register for LPC82x family, there is not the BOD state bit which you can poll.

But there is BOD Reset status bit in SYSCON->STARTERP1[BOD], with which you can poll the register to know which has reset the chip.

 

xiangjun_rong_0-1728614445644.png

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply

62 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I have not good idea to test the VDD voltage.

As you know that the LPC82x has ADC, if you connect the VDD to ADC analog channel, the ADC sample is effected by the VREFP/VDD voltage.

If you use on-chip ACMP module, the VDD also takes effect on the ACMP output.

BR

Xiangjun Rong

 

65 Views
mwp_nxp
Contributor III
Is there a method to detect when VCC has risen back above the BODINTVAL level?
0 Kudos
Reply