Interrupt on Power Loss (imxrt1062)

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

Interrupt on Power Loss (imxrt1062)

1,110件の閲覧回数
bennxp
Contributor III

I'm using the MIMXRT1062 chip and I have a battery powering SNVS and the rest of the chip is powered by an external power supply. Is there a way to run code when the external power supply is removed? Currently, when that power is removed, the chip goes into suspend mode with just the SNVS powered. This works fine, but I am using the PMIC_STBY_REQ pin as a GPIO pin (bank 5, pin 2) and I want to change its output from High to Low when the chip goes into suspend mode. Is there some interrupt that I can setup when the chip is normal mode that will run in SNVS mode once when power is removed?

Thanks!

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,090件の閲覧回数
bennxp
Contributor III

Thanks for the information. Sounds like I'll need to add external circuitry to trigger the MCU before it (fully) loses power.

Thanks,

0 件の賞賛
返信

1,101件の閲覧回数
art
NXP Employee
NXP Employee

Q. Is there a way to run code when the external power supply is removed?

A. No, it is not possible. Removing the main power means removing the power from
the CPU core, so, no code can be executed. The VDD_SNVS_IN voltage only supplies
the 32kHz oscillator and SNVS module. When the main power is back, the processor
starts booting in normal cold boot.

Best Regards,
Artur

0 件の賞賛
返信