Tool/software:
Dear TI members,
I follow an example code of EPWM generation. By adding a factor duty & TPWM variable(like TPWM =5357, duty = 0.46) set by me in the code, I get the frequency around 28Khz, but the duty cycles from
EPWM1A is on GPIO0 = 54%
EPWM1B is on GPIO1 = 46%
I would like to change or swap the duty cycle values so that I can get the results on EPWM1A on GPIO0 and EPWM1B on GPIO1 like this:
EPWM1A is on GPIO0 = 46%
EPWM1B is on GPIO1 = 54%
The same procedure for EPWM2 for swapping the values(EPWM2A change to EPWM2B) is required.
Please suggest how I can change in the code.
Please find attached code:
Thanks
Regards
Arsalan