How to remove PWM signal from the pin?
Posted: Wed Apr 17, 2019 12:44 pm
Hello! I'm working with several digital servomotors and I need to deal with overload situation. In case when my servomotor stays in overload state for too long I need to turn off the servomotor. I don't want to power off them so I'm looking for a function to turn off PWM signal.
Currently, I'm using mcpwm_gpio_init() and mcpwm_init() functions. But i cant find deinit functions.
I've searched deeper and find out, that there are functions gpio_matrix_out and gpio_matrix_in which, on my thoughts, do the mapping of MCPWM unit to certain GPIO. But I've bumped into some signalIdx parameter which I do not understand.
Can you help me please not to burn all my servomotors? ))
Currently, I'm using mcpwm_gpio_init() and mcpwm_init() functions. But i cant find deinit functions.
I've searched deeper and find out, that there are functions gpio_matrix_out and gpio_matrix_in which, on my thoughts, do the mapping of MCPWM unit to certain GPIO. But I've bumped into some signalIdx parameter which I do not understand.
Can you help me please not to burn all my servomotors? ))