Tool/software: Code Composer Studio
Hello,
I would like to generate 3-phase shifted PWM signals using TMS320F28335 DSP. But I want to vary the PWM signal frequency from 20 kHz to 24 kHz periodically with a step change of 1 kHz and the duty ratio will be constant. So, the frequency of the PWM1 is supposed to vary from 20 kHz to 24 kHz and the other two PWM signals, PWM2 and PWM3, will follow the PWM1 with a phase of 120 degree. As a first approach, I am trying to vary the frequency of PWM1 where I am comparing the TBCTR value with the TBPRD to update the TBPRD and CMPA values. To avoid delay because of calculation, I have stored the required TBPRD values in an array. But the PWM1 is not working as I expect it to be.
Could anyone please give me suggestions to solve this problem?
Mohammad Arifur Rahman