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?