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.
Hi experts,
Could let us know if phase difference between ePWM5 and ePWM6 increase or not ?
When clock source of ePWM is same, that difference is fixed after ePWM sync.
"after ePWM sync" means below processor.
1) TBCTL2.bit.SYNCSELX = 1;
2) TBCTL2.bit.SYNCSELX = 0;
Because ePWM5 out a sync signal twice when EPWMxSYNCO = CMPC,
ePWM6 counter is unexpected count-up/down behavior when ePWM6 is up-down mode.
Therefore we need to output one-shot SYNCO signal with CMPC.
We have a question. After one-shot sync, a phase difference between ePWM5 and ePWM6 is fixed ?
We expect that it is fixed because a clock source of ePWM is same.
Best regards,
Hidehiko
Hi Hidehiko,
After one-shot sync, a phase difference between ePWM5 and ePWM6 is fixed ?
Can you please explain what you mean by "is fixed". The value in TBPHS is the value that will get written to the time base counter (TBCTR) when a sync occurs. If this value remains the same then the phase shift applied to EPWM6 should remain the same.
Best Regards,
Marlyn
Hi Marlyn,
I mean that "is fixed" is stable, and is "not decrease/ increase continuously".
For example, phase difference of ePWMxes in different DSPs are changing continuously
because clock sources are different.
And so we can sync them with EPWMxSYNCI and EWPMxSYNCO between DSP#B and DSP#B.
However in same DSP, phase difference of ePWMx is stable.
In other words, phase difference of ePWMxes is kept because they have a same clock sources.
Best regards,
Hidehiko
Hidehiko,
After one-shot sync, a phase difference between ePWM5 and ePWM6 is fixed ?
Phase difference between EPWM 5 and EPWM 6 should remain the same as long as the TBPHS value remains the same.
Best Regards,
Marlyn