The two ePWMs can be synced by configuring one ePWM module as the master and the other as the slave using the Time-Base Synchronization feature.
Follow the steps below to synchronize the two ePWMs:
- Configure ePWM7A as the master by setting the “Synchronization Output (SYNCOUT)” to occur when CTR = Zero. This makes sure that ePWM7A emits a synchronization pulse at the beginning of each period.
- Configure ePWM8A as the slave by enabling “Synchronization Input (SYNCIN)” to accept the synchronization pulse from ePWM7A.
- To allow phase synchronization, set “Phase Enable (PHSEN)” as “on”.
- To introduce a desired phase shift, set the “Phase Offset (TBPHS)” to the desired value.
- Ensure that both ePWM7A and ePWM8A have the same “Time-Base Period (TBPRD)” and “counter mode”.
This workflow is demonstrated in the link provided below. Refer it for more information and a better understanding.
I hope this helps!
