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.

TMS320F28388D: How can one increase (or decrease) the frequency of a PWM signal over time?

Part Number: TMS320F28388D


Hi,

I am currently developing code for stepper motor control and I am using a PWM signal to drive the motor. One of the features I wish to develop is being able to define a motion profile. For the time being, I wish to implement the trapezoidal profile.

While I know how to change the timebased period using the EPWM_setTimeBasePeriod() function, I want to know if there are other ways to change the frequency over time other than to call the aforementioned function in an interrupt function that is triggered every CTR=0.