8.9. How do I implement an emergency stop button?

To implement an emergency stop button, you will need to use a General purpose digital input/output and use the command STOP. If you use XiLab, you need to uncheck the “IO pin is output” in the EXTIO settiongs and then select the preferred action from the “EXTIO mode” list. If you use your own software, you should set the preferred options using the _set_extio_settings() function and EXTIO mode flags.

Note

The emergency button function does not provide a smooth stop