Sudden Power Outage LPC1857

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Sudden Power Outage LPC1857

ソリューションへジャンプ
555件の閲覧回数
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 解決策
525件の閲覧回数
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 返答(返信)
526件の閲覧回数
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

 

 

420件の閲覧回数
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 件の賞賛
405件の閲覧回数
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 件の賞賛