Sudden Power Outage LPC1857

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Sudden Power Outage LPC1857

跳至解决方案
885 次查看
rubensjunior
Contributor IV

Hi friends,

I would like to know how it is possible to save the value set for a variable in flash memory moments before a sudden shutdown of the LPC1857 microcontroller's power supply.

Thanks a lot!

Rubens Júnior

标签 (1)
0 项奖励
回复
1 解答
855 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that you can connect a large bypass capacitor on the 3.3V power supply pins, the LPC1857 has BOD, which can detect the power supply voltage, when the voltage is less than a threshold which is programmable, the BOD will fire an interrupt, in the BOD ISR, you can write the important data to on-chip EEPROM or flash. Because large capacitor is connected, it can keep a long time so that the data can be written reliably.

BR

XiangJun Rong

 

 

在原帖中查看解决方案

3 回复数
856 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that you can connect a large bypass capacitor on the 3.3V power supply pins, the LPC1857 has BOD, which can detect the power supply voltage, when the voltage is less than a threshold which is programmable, the BOD will fire an interrupt, in the BOD ISR, you can write the important data to on-chip EEPROM or flash. Because large capacitor is connected, it can keep a long time so that the data can be written reliably.

BR

XiangJun Rong

 

 

750 次查看
rubensjunior
Contributor IV

Dear @xiangjun_rong,

Please can you help me to find code examples with BOD implementation for LPC1857?

Best regards,

Rubens Júnior

0 项奖励
回复
735 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Unfortunately, I do not get the BOD example for the LPC1857, but there is BOD example in the LPCOpen package for the LPC4088, pls refer to it.

xiangjun_rong_0-1686706642216.png

 

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复