How do I synchronize the PWM signals on a c2833xx DSP?

조회 수: 18(최근 30일)
I have three ePWM blocks in the model and I want to have their output synchronized. Currently they are not.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
ePWM modules use different timers, therefore you can see a phase delay between modules. However, the ePWM blocks have synchronization capabilities, as there is a synchronization signal that goes along each PWM block.
Each ePWM block has "sync in" and "sync out" settings. ePWM1 can receive a "sync in" signal from an external pin. Its "sync out" signal can be connected to the ePWM2 "sync in", and likewise, ePWM2's "sync out" signal is connected to the ePWM3 "sync in". By doing this, you can synchronize ePWM 1, 2, and 3.
Attached is a model that demonstrates synchronization. In this model, ePWM2 and ePWM3 are synced based on ePWM1. It was arbitrarily decided that ePWM1 would send a sync signal to ePWM2 every time the counter reaches 0. ePWM2 resets its counter to 0 when receiving the sync signal and passes the sync signal to ePWM3 that resets its counter to 0 as well. This method is very robust as there is a guarantee that the timers will not shift along the way since they are resynchronized at every period of ePWM1.
  댓글 수: 1
Ashib 2019년 4월 29일
After clicking the PWM_sync.mdl file, I can not download the file, rather it shows the file in the text format. I am using chrome browser. How I can download the attached file?

댓글을 달려면 로그인하십시오.

추가 답변(2개)

Vivek 2013년 12월 21일
I have a couple of confusions. I would glad to get answer Related to synchronizing 1) I saw that Sync output of ePWM1 was selected to be CTR=0 ePWM2 was selected to be EPWMxSYNCI or SWFSNYC ePWM3 was selected to be disabled I see no sign that ePWM1 was synced to some external input and ePWM1 input is connected to ePWM1 sync output and ePWM2 sync input is connected to ePWM2 sync output. Am I missing something? Can you explain me further.

Pouriya Boostani
Pouriya Boostani 2017년 7월 31일
In ePWM syncing the ePWM1 is the master and the other ePWMs are the slaves. If you want to synchronize all the ePWMs you must set the ePWM1 and the other ePWMs must be set on EPWMxSYNCI.
For more information see the figure 7,8,9,49,51,53,55,59 and 61 of sprug04a.pdf.


더 많은 답변 보기:  Power Electronics Community

Community Treasure Hunt

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

Start Hunting!

Translated by