Part Number:LAUNCHXL-TMS57004
Dear All,
I want to measure the time duration between two events using TMS 57004.
I have enable the gio and rti drivers.
then in sys_maiin.c I have written the following code.
rtiInit();
rtiResetCounter(rtiCOUNTER_BLOCK0);
rtiStartCounter(rtiCOUNTER_BLOCK0);
delayms(x);
rtiStopCounter(rtiCOUNTER_BLOCK0);
uint32 t;
t=rtiGetPeriod(rtiCOMPARE0);
Even after changing x from 1000 to 500. I am getting the same value of t.
Please help me resolving the issue.
Regards,
gunit