Is there a standard way to handle power down on the Teensy/ARM?
What I mean by that is the user will usually cut power immediately with a switch, if you don't have some type of "soft power button".
When this happens, in my case, I get some small amount of garbage/incomplete data sent on the serial output as the MCU loses power.
Maybe something like using brownout detection, so you can catch the power dropping when powering off and perform a few functions right before the MCU stops completely?
Any tips appreciated.
Thanks
JKIM
What I mean by that is the user will usually cut power immediately with a switch, if you don't have some type of "soft power button".
When this happens, in my case, I get some small amount of garbage/incomplete data sent on the serial output as the MCU loses power.
Maybe something like using brownout detection, so you can catch the power dropping when powering off and perform a few functions right before the MCU stops completely?
Any tips appreciated.
Thanks
JKIM