Part Number: TMS320F28377D
In the new product design, my company wants to use the PWM abilities of the DSP in order to control the motion of a 3-phase rotary motor, which has 3 phases (R, S and T). According to this design, PWM1A should control axis 1R, PWM1B - axis 1S, PWM2A - axis 1T. (Channels C and D will be used for other purposes). Due to the nature of the motor, the phases R, S and T should have 120° phase shift. At the beginning, PWM is set to 50%, therefore CMPA and CMPB are set to EPWM_TIMER_TBPRD/2.
However, as far as I understand, PWM1 has only one counter and four comparators, CMPA, CMPB, CMPC and CMPD. CMPA and CMPB define the thresholds for controlling PWM channels A and B. Thus, if CMPA and CMPB are set to the same value, (namely, EPWM_TIMER_TBPRD/2), they will create events simultaneously, since there is only one counter, — which contradicts to the 120° phase shift requirement. Thus, I proposed to use PWM1A for axis 1S, PWM2A for axis 1R, and PWM3A for axis 1T; implementing phase shift between PWM1, PWM2 and PWM3 will be easy. But this requires layout changes of the PCB, and the management is not happy with my proposal.
Please advice: is there a possibility to implement phase shift between PWM1A and PWM1B? If yes, how?
Thanks,
Alexey.


