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.

TMS320F28033: When both EPWM3 and EPWM4 are synchronized with EPWM1(Master), EPWM3 can be phase-shifted by Alpha angle, but EPWM4 cannot be phase-shifted by Alpha angle.

Part Number: TMS320F28033


Hi Experts,

I am asking for my customer.

They are using HRPWM1A, HRPWM2A, HRPWM3A, HRPWM4A, both CTR = Up and down count mode, and HRPWM3A, HRPWM4A are synchronized with HRPWM1(Master). And they need change the TBPRD for frequency control, meanwhile the TBPHS of EPWM3 and EPWM4 need to be updated. You can see the below figure we have try, using the while loop to determine the conditions for the update of the CTR value, but it works for HRPWM3A sync to HRPWM1, not work for HRPWM4A sync for HRPWM1. 

The TBPRD, TBPRDHR, CMPA, CMPAHR  and TBPHS register given value in the ISR as below figure. 

The HRPWM waveform output(When the frequency change from 100K to 90K, the red waveform (HRPWM3A) is correctly changed, but the blue waveform(HRPWM4A) not change.):

So could you give me some suggestion/dir.? How to ensure that The TBPHS of HRPWM3 and HRPWM4 are updated at the same time? Thanks~