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.

AM335x: How to synchronize the time-base counters of ePWM modules and eCAP modules

The TBCLKEN bit in the PWMSS_CTRL register in the Control Module can be used to globally synchronize the time-base clocks of all enabled ePWM modules on a device.

Can it be used to synchronize the clocks of all enabled ePWM modules and all enabled eCAP modules on a device?

In addition, please tell me how to synchronize starting the PWM outputs of ePWM modules and eCAP (in APWM mode) modules.

Best regards,

Daisuke

  • Hi,

    I will ask the factory team to comment.
  • Hi Daisuke,

    The TBCLKEN bit only synchronizes the ePWM modules. However, the ePWM and eCAP modules can be synchronized as shown in Figure 15-2 (PWMSS Synchronization) in the AM335x TRM rev M.

    Regards,
    Melissa
  • Hi Melissa-san and Biser-san,

    Thank you for your reply.

    I can understand that the time-base CLOCKs cannot be synchronized in eCAP modules and between ePWM modules and eCAP modules.

    The time-base COUNTERs of ePWM and eCAP modules can be synchronized (TBPHS→TBCNT or CTRPHS→TSCTR) by SYNCI or SYNCO source, but it seems that the COUNTERs cannot be synchronized when the COUNTERs start.

    I want to know how to synchronize the PWM outputs of ePWM modules and eCAP (APWM mode) modules when the outputs start if it is possible.

    Best regards,

    Daisuke