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.

RTOS/CC1310: How to Set PWM Polarity Active Low

Part Number: CC1310

Tool/software: TI-RTOS

How can the polarity of the PWM output on the CC1310 be set to active low? 

The PWM_Polarity flag does is not in the PWM.h header file, and the PWM_Params_init comment says the "PWM instances run in active high output mode". How can this be changed?

The end goal is to have 2 PWMs running at 50% duty cycle but out of phase with each other - so one outputs high while the other outputs low. Are there any other suggestions how to do this by starting a 2nd PWM out of phase with the other, or inverting the output polarity?

Thanks,

Chad C.

  • Chad,

    The PWM drivers do not support setting the "active level" of PWM output. Something like you suggest (starting them at different times) would have to be done. This would have to be done even if "active level" was supported since the phase of the two PWMs would depend on when they were started relative to each other.

    If you need precise certainty about the signals being out of phase with each other, I suggest that you simply add an external signal inverter to your circuit and use only one PWM output to drive it.

    Alan