How can I Synchronise two ePWM?

5 views (last 30 days)
Manish Tathode
Manish Tathode on 29 Mar 2017
Answered: Samar on 24 Apr 2025
Hello, I am working on LaunchPad LAUNCHXL-F28377S with Matlab Simulink. I am trying to deploy a simulink model which has used 3 ePWM (ePWM7A, ePWM8A and ePWM6A).
I want that ePWM7A and ePWM8A should get synchronised. How can I do that?

Answers (1)

Samar
Samar on 24 Apr 2025
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!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!