Gracefull shut down of microcontroller

cancel
Showing results for 
Search instead for 
Did you mean: 

Gracefull shut down of microcontroller

641 Views
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 Kudos
4 Replies

371 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you please specify used MCU? Thanks

0 Kudos

371 Views
vrushalitaklika
Contributor III

MPC5777C

0 Kudos

371 Views
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 

371 Views
vrushalitaklika
Contributor III

Thanks David

0 Kudos