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.
Hello TI community
I am working on the different EPWM and range of the frequency from 10 Khz to 800 Khz, I follow the one-day workshop, moreover, in lab 7, I see there is the code for 2 Khz. I have tried to modify that for my desired range but it won't work. Can you please tell me how to change the period of the "PWM_Half_Period"? I have tried to change that number below 13000 (for higher frequency 10 Khz to 800 Khz) but it doesn't work. Is there a limitation for certain frequencies? If yes then how I can change that limits?
Thanks
RG
RG,
There is no limitation on the PWM frequency you should be able to meet this frequency range. I suspect that something else is overwriting the value you have input.
How were you adjusting the PWM frequency? Did you read back the TBPRD value during execution?
I assume you have been modifying lab 7, for simplicity I would recommend that you start from a basic PWM example from C2000Ware.
C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2803x\examples\c28\epwm_updown_aq
From there it's just a matter of modifying TBPRD.
Regards,
Cody