Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

TMS570LC4357: Cannot read out values of the RTI timer registers

Part Number: TMS570LC4357

I am trying to read out the RTI counters to use in a delay loop.

One of the RTI counters will be used as a clock tick generating an interrupt.

The other, I would like to set so that it clocks the other counter so I get a millisecond resolution.

I was thinking of having the prescaler UCx count for 1 millisecond.

My problem is that I only read out 0x00000000 from most registers.

It does not appear to count.

Both counters are enabled as you see from GCTRL.

The counters are clocked by RTICLK (which I have either used a prescaled osc,

or the VCLK.

I added code to flush the datacache, to no avail.

Any clues?

  • Hello Ulf,

    If you want to read the 64-bit counters.Please follow the reading sequence suggested in the TRM (17.2.1.1).

    1. Read RTIFRCx first

    2. then read RTIUCx

    The up counters are implemented as shadow registers. Reading RTIUCx without having read RTIFRCx first will return always the same value. RTIUCx will only be updated when RTIFRCx is read.