This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: PWM channel will fail

Part Number: TMS320F28335


Hi.

I am controlling the servo motor with PWM.

However, if the connector is reversed and the PWM pin is shorted to GND,

the DSP's PWM channel will fail. How can I prevent it?

Please ask for help.

  • Hi Suhyn,

    Can you further describe the problem that occurs afterwards? Does the PWM not resume operation at all? Does the device reset?

    One way I would suggest to get around this problem is to leave the PWM pin as a GPIO in input mode with the pull up enabled. Before enabling the PWM mode, it could check the state of the pin through the GPxDAT register. If the pin reads a '1' (due to the pull up resistor) then the pin is not shorted to ground. If it reads '0' then the pin may be shorted to ground and should prevent the PWMs from turning on.

    Regards,
    Kris