I’m building a device which controls some reasonably high-powered devices (maximum total dissipation around 100 W). I’m controlling these devices with a few PWM channels.
What I’d like to do is have some way to detect when my device is going down for a firmware upgrade, and shut off the control channels. The controlled devices are off when the MCU undergoes a hardware reset, but for state changes which don’t cause such a reset the channels remain in the configuration the application put them in.
Is there any such functionality in the firmware?