Part Number: TMS320F2800157-Q1
Hi experts,
Good day! I am asking for customer.
My customer is testing F2800157 with launchpad and found that EPWM phase shift direction will influence shift time.
Here is the test description:
The EPWM3 zero point generates a synchronous signal, EPWM1 and EPWM2 has phase shift based on EPWM3 sync signal. The EPWM1 phase shift value is 48 and the EPWM2 phase shift value is 40
Test1:
EPWM1: phase shift 48 , Count down after sync event
EPWM2: phase shift 40 , Count up after sync event
EPWM1->EPWM3: 418ns

EPWM2->EPWM3:314

Test 2:
EPWM1: phase shift 48 , Count down after sync event
EPWM2: phase shift 40 , Count down after sync event
EPWM1->EPWM3: 418ns

EPWM2->EPWM3: 352ns

From the above test, it can be seen that when the shift values are the same but the shift direction is different, the results of the shift will be different. "Count down direction" will cost 4.5 cycles then "Count up direction".
Customer has following questions:
- Why the phse shift direction will cause time difference based on EPWM2 result?
- How is the phase shift time calculation formula with different directions?
I attach the test code here. You can use this for testing. 2800157_PhaseShiftTest.zip
Best Regards
Kita
