Part Number: TMS570LS0714
Other Parts Discussed in Thread: HALCOGEN
I would like to set a delay of 10 ms using a counter register with a 16MHz clock.
Reading the TRM section 11.4 I set:
dccSetCounter0Seed(dccREG1, DCC_settling_delay); //delay of 10 ms for freq 16Mhz as explained in TRM section 11.4 for dccREG1
dccEnable(dccREG1);
Where DCC_settling_delay=160000; (10 ms x 16Mhz).
I even tried to set the register valid0 as 4 which is the minimum value possible for this register and to define uint32 DCC_settling_delay=159996; (160000-4) but it doesn't work.
uint32 tolerance=4;
dccEnable(dccREG1);
dccSetTolerance(dccREG1, tolerance);
In addition, I have the Stat register as 0x00000001 which should mean it has sent a flag but there is an error.
Finally, how can I check or wait if the 10 ms has passed? Which register should go from 160000 to 0? Which is the correct mode to set a counter of 10 ms?


