|
Re: Help needed timing a pulse (2004 Robovation)
Thanks for the reply, Kevin -
I have nothing against interrupts per-se. I simply haven't used them, so I'm a bit apprehensive about trying. Will they accomplish what I need, without undue amounts of lag?
If you could provide a skeleton code that I can work from, that would be wonderful. I see how to set them up in the software, but their use is a bit beyond me. The overflow/preloading make sense in theory, but I am not positive on how the values for each are derived, or how I can convert the values into a usable time (mS, uS) that may be accessed like a variable.
How does Kevin Watson do this in his infrared receiver code? It looked like he might have some usable way of measuring a pulse width.
|