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.

TMS570LS3137: Calculation of time (RTICLK, GCLK) on TMS570LS3137

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN,

Hello,

We are using TMS570LS3137 eval board and my requirement is to calculate time elapse of some time say 10 milliseconds. Based on the HALCOGEN configuration RTICLK= 20MHZ, GCLK = 180 MHZ.

we are counting ticks based on RTI counter registers and getting the required time.  1 tick = 50nSec. Is this the right way to do it?

Or

is there any relation between RTI clock (RTICLK) and MPU clock(GCLK) that we need to consider in calculating the time?

Thanks,

Kalyan

  • Hello Kalyan,
    Yes, you can do it in that way. You should take care about how counters are read. Look at Section 13.2.1.1 of device TRM.
    RTICLK by default uses VCLK as a clock source (max VCLK for TMS570LS3137 is 100Mhz ). You can choose same clock source for GCLK and RTICLK (not more than 100MHz for RTICLK) but there is no direct relation with GCLK.

    Best regards,
    MIro