Page 1 of 1

MOD54415 Reaction Time Timer

Posted: Wed Jul 17, 2013 4:41 pm
by amaier17
I'm trying to capture my reaction time using external hardware (LEDs and a keypad). I was using the uCOS provided TimeTick variable however my accuracy is limited by the TICKS_PER_SECOND with this method. Is there an easy way to get two times in microseconds like the gettimeofday function in C?

Re: MOD54415 Reaction Time Timer

Posted: Wed Jul 17, 2013 7:02 pm
by roland.ames
High Resolution Timer, is described in "NetBurnerRuntimeLibraries.pdf".

Re: MOD54415 Reaction Time Timer

Posted: Fri Jul 19, 2013 8:41 am
by amaier17
Thanks! That API is really easy. There's also a demo located in .../examples/utils/HiResTimerDemo

Re: MOD54415 Reaction Time Timer

Posted: Fri Jul 19, 2013 10:00 am
by dciliske
Anyone got any suggestions for how to make things easier to find/more obvious with regards to utilities/examples? This has to be the twentieth or so thread with regards to timing problems that's been answered with "Have you heard of the HiResTimer?"... (Not your fault amaier!)

I'm seriously considering making a sticky thread for FAQ type stuff.

Re: MOD54415 Reaction Time Timer

Posted: Fri Jul 19, 2013 10:20 am
by Chris Ruff
Extremely good idea.

The kinds of FAQs should be the hi-res timer, where file date/time comes from and works, how comphtml and web controls, variables works, why and how TICKS_PER_SECOND, how and why tasks need to either block with system calls or use OSTimeDly, what the standard used tasks are, there are many more...

Chris

Re: MOD54415 Reaction Time Timer

Posted: Fri Jul 19, 2013 11:42 am
by tod
The wiki FAQ page seems like it would be ideal for this. Does the wiki (or wiki FAQ page) get mentioned in the getting started documentation that goes out with a dev kit? The FAQ page on the wiki could probably use a face lift. I did notice the WIKI FAQ does get prominent positioning on the NetBurner site.