Hi, Daniel
I generally use TMR1 and it's interrupt, reading Timer1 ( as free running timer ) ...
just read it @ each interrupt ... difference from previous read ... gives the period.
@ 20 Mhz max resolution is 200ns which is quite enough ...
Alain
Last edited by Acetronics2; - 17th November 2009 at 08:07.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks