Gracefull shut down of microcontroller

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

Gracefull shut down of microcontroller

1,132 次查看
vrushalitaklika
Contributor III

Hi,

I am looking for steps involoved in graceful shutdown of microcontroller when any of the gpio pin is used as key_switch to shutdown microcontroller.

If anyone has idea on sequence of shutting down microcontroller safely, please share your views.

Thanks

Vrushali

0 项奖励
4 回复数

862 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you please specify used MCU? Thanks

0 项奖励

862 次查看
vrushalitaklika
Contributor III

MPC5777C

0 项奖励

862 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

You may perform software reset

SIU.SRCR.R = 0x80000000;

in the interrupt routine on external IRQ signal connected to the button

Basically you only need to slightly modify example below:

Example MPC5777C-SIUL_External_IRQ GHS714 

862 次查看
vrushalitaklika
Contributor III

Thanks David

0 项奖励