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.
Hi,
I am using TMS320F28335 controller and operating pwm module in up-down counter mode.
I want to update the compare registers of pwm module twice with in a period. ie at ctr=0 & ctr=prd.
can i change the value of INTSEL during run time after initializing the epwm module?
Kiran,
Under most circumstances I wouldn't do things the way that you are thinking. Instead, I would consider using up-count mode for simplicity, reduce you PRD value by half, and setup an interrupt to fire once every period.
The only exception might be if you want on-time-A as the PWM counts up and on-time-B each time the PWM counts down or something weird like that.
If you give some more details on what you're trying to accomplish, we may be able to suggest something more elegant for your specific situation.
Thank you,
Brett