How can I Synchronise two ePWM?

조회 수: 5 (최근 30일)
Manish Tathode
Manish Tathode 2017년 3월 29일
답변: Samar 2025년 4월 24일
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?

답변 (1개)

Samar
Samar 2025년 4월 24일
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!

Translated by