Part Number: TMS320F28027F
Hello,
I am having difficulty generating a phase shift between the PWM channels 1 and 2. I've been trying to follow the example in the ePWM Ref Guide "Controlling Zero Voltage Switched Full Bridge (ZVSFB) Converter", but I cannot get the code to compile as there are errors stating:
1) "EPwm2Regs.TBPHS = 1200-300;" cannot be of type int
2) "EPwm1Regs.CMPA = 600;" cannot be of type int.
I tried changing 1) to "EPwm2Regs.TBPHS.all = 1200-300;" and 2) to "EPwm1Regs.CMPA.all = 600;" to get the compiler to stop complaining, but then I do not observe any output from the GPIO0 (ePWM1A) or GPIO2 (ePWM2A). I have already set up the GPIOs separately in the code (multiplexed them with PWM modules and disabled pullup resistors) by means of a GPIO_Handle.
Can anyone provide assistance?
Thanks,
Jeff