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.
Jonny
No1 没错。同步信号就是可以让PWM1,PWM2,... PWMx 在同步信号来的时候,可以错开某一个相位差,有些应用就需要这样的功能,尤其是数字电源。这也是同步信号最主要的功能。如果没有同步信号的功能,如果需要他们很精确的产生一个相差,就会很麻烦。
No2, 在多个PWM初始化之前,一般会把这些PWM的时钟关掉,让他们停止计数,如
// For this example, only initialize the ePWM
EALLOW;
SysCtrlRegs.PCLKCR0.bit.TBCLKSYNC = 0;
EDIS;
InitEPwm1Example();
InitEPwm2Example();
InitEPwm3Example();
EALLOW;
SysCtrlRegs.PCLKCR0.bit.TBCLKSYNC = 1;
EDIS;
在初始化完成之后,才把时钟PWM的TBCLK使能,这样就能让所有的PWM能够在同个时间点同步开始计数。这种情况下,就可以不用使用到同步信号进行同步啦。
Eric