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
Could you please specify used MCU? Thanks
MPC5777C
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:
Thanks David