If you need something running in background, you need to use internal Timer or CCP module or something like that. Now it works in background.
With interrupts it will work great. Start a timer on rising edge of your signal and stop it on the next. OR, use a prescaller to get some sample of it, then divide it by the prescaller value. That way you may avoid some odd results.
read the following document
http://ww1.microchip.com/downloads/e...Doc/41214a.pdf
Last edited by mister_e; - 20th May 2006 at 17:26.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks