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.

AM3358: Synchronizing two DMTimers

Part Number: AM3358

Hello,

For a timestamping application, I need to synchronize two timers, which are driven by the same clock source.

The first timer is used as a continuously running clock in capture mode, which timestamps 1PPS signals from a GPS receiver. The second timer runs as a frequency divder that outputs a 1PPS signal in PWM mode.

I need to start both timers at either the same time or with a precisely known offset. Both timers are driven by an externally provided 10MHz clock (i.e. 100ns cycle time).

Does anyone have a suggestion how to achieve this?

Best regards,

Matthias

  • Hi Matthias,

    Are you restricted to only using the AM335x DMTimer?  If not, then you might consider using eCAP for your capture timer and ePWM for your output timer.  As described in section 15.1.2.1 (PWMSS Synchronization Detail) of the AM335x TRM, the ePWM and eCAP modules can be synchronized. 

    Regards,

    Melissa 

  • Hello Melissa,

    As I need the ability to supply an external counter clock, it looks like I'm limited to using the DMTimers. The PWMSS has only one possible clock input from the PRCM which is internally generated. It lacks the stability I need for my application.

    Regards,

    Matthias