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.

TMS320F280049C: PWM missing when use phase shift function

Part Number: TMS320F280049C

Tool/software:

Hi,

when I use dsp280049c to implement phase shift , encountered PWM sometimes missing a cycle.

my phase shift configuration as below:

set PWM1 as master,set PWM2 as slave related with PWM1  and  load phase shift register value  when PWM1 "EPWM_SYNC_OUT_PULSE_ON_COUNTER_ZERO" . 

set PWM3 as another slave relate with PWM2,and load phase shift register value when PWM2“EPWM_SYNC_OUT_PULSE_ON_COUNTER_ZERO”

some part code:

EPWM_setSyncOutPulseMode(EPWM1_BASE, EPWM_SYNC_OUT_PULSE_ON_COUNTER_ZERO);

PWM_setPhaseShift(EPWM2_BASE, 250);//250= 90degree 

EPWM_setCountModeAfterSync(EPWM2_BASE,EPWM_COUNT_MODE_UP_AFTER_SYNC);
EPWM_setSyncOutPulseMode(EPWM2_BASE, EPWM_SYNC_OUT_PULSE_ON_COUNTER_ZERO);

EPWM_setCountModeAfterSync(EPWM3_BASE, (EPWM_SyncCountMode)EPWM_COUNT_MODE_DOWN_AFTER_SYNC);

EPWM_setPhaseShift(EPWM3_BASE, DAB_PhaseShift_ticks);

then in ADC interrupt update  both PWM2 and PWM3 phase shift value each time ,then sometimes PWM3 will occured PWM missing for a cycle, waveform as below:

But if  I only update PWM3 phase shift ,and set PWM2 phase shift as a fixed valued ,the PWM3 will be OK, I don‘t know why this? can you give some guidance about it? thanks