Microsecond Resolution

osmankaralica
Hello All,
I need a callback function which will be called periodically every 10
microseconds and do some measurements. How can I use interrupt mechanism to
call an ISR every 10 microseconds under Windows CE 6.0?

Thank you,
Ozman

adam watson
tall order.

Paul Mulvey
My advice - read this:

http://download.microsoft.com/download/9/c/f/9cffaa58-4000-48d6-a4b2-5fe...

It has a section on writing your own ISR.

And also look at the sources for the touchscreen driver on your mini2440,
which implements a timer-based ISR (when you press down on the screen it
starts).

There's also a high resolution timer available via
QueryPerformanceCounter(), which I think uses timer 4 on the mini2440. This
might allow you to fire off a function every 10us instead of using an ISR,
but you'll need to confirm all this for yourself.