Part Number: TMS570LC4357
Tool/software:
Hi,
For RTI, we have below implementation to read timer 0 :
but, for a scenario mentioned below we believe that timer may read incorrect values:
When FRC0 = 0 , URC 0 = 0xFFFFFFFF
timer_h = static_cast<Uint32>(rti_base[FRC0 ]);
//timer_h would be 0
timer_l = static_cast<Uint32>(rti_base[UC0]);
//timer_l will be zero as UC0 will increment its timer count after previous instruction (rolls over) i.e., 0xFFFFFFFF +1 => 0 .
and timer_h will be 0 but the expectation is that timer_h should be 1.
Is there a solution to handle this scenario ?

