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.

Is there any benefit of synchronizing PWMs when not changing frequency?

Hi, I run three PWMs which need to generate output pulses simultaneously. I have tried to achieve this by using SysCtrlRegs.PCLKCR0.bit.TBCLKSYNC, so that I enable all clocks at the same time.

In addition, the PWM modules support synchronization that runs continuously. If I will never change frequency after initialization, is there any point of using this? I would suppose that they do not drift from each other.

  • So as long as you don't change the frequency, the syncing is not that necessary. But since you have an option of syncing pwms without any software overhead, why not use it. Sync out, Sync in, Phsen are all one time configuration only. So it doesn't hurt to actually always keep the pwms in sync.  And say, a temperature change affects all the PWM clocks differently, they might become out of sync ( a very very unlikely scenario), syncing will keep you out of trouble.

    Vivek