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.

Timer 0 inside TMS320C28346

Other Parts Discussed in Thread: TMS320C28346

Hello,

I have a requirement of high speed timer running inside a microcontroller.

The timer/counter should run at 300 MHz to have a precision of 3.3 nsec.

I came across TMS320C28346, which runs on 300 MHz and a timer being clocked from SYSCLKOUT.

So I understand is the timer can run at 300 MHz by setting the prescalers to 1.

Is my understanding correct one? If anyone have any other idea or processor for running 300 MHz timer?

Regards,

Ankit

  • Hi,

    You can use the EPwm or ECap too. The EPwm has got a 2^16 maximum period, ECap has got a 32 bit timer.

    But what is the application? The only reason why I used the cpu timer 0 is, that it can't do anything else. Just counting. Hence it's useful for wait functions and profiling the program. The ECap is more valuable.

    Best regards,
    Edwin Krasser

  • Hi,

    My requirement is to timestamp the events and take a difference of time between two timestamps.

    The resolution required for timestamp is 3.3 nsec.

    So I am thinking to run an internal timer which can be clocked directly from sysclk and can be started and stopped by software instructions precisely.

    Can I use ECAP 32 bit timer for 300 MHz frequency time stamping?

    Regards,

    Ankit

  • Hi,

    Ok, it's a cpu cycle measurement. You can use the ECap, the time base with the time stamp counter TSCTR should do quite the same, because it's just a 32 bit counter. But: Using timer 0 is the most sensible solution because this timer is worth nothing but counting ticks or a periodic interrupt.

    Best regards,
    Edwin Krasser