Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

LAUNCHXL-TMS57004: Measure the time duration between the events

$
0
0

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


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>