You just need to preload Timer 1 with a value "not so far" from 65536 - 1000 ... no more free running timer usable !!!
it will overflow for 1000 counts = 1 ms ...
"not so far" mean you have to add the time to reload the timer and do what you want to the "64536" value ...
See Steve's ( Mr E !!! ) calculator here : http://www.mister-e.org/pages/utilitiespag.html
I also forgot you could use the "compare" function of the CCP module ... and poll the CCPIF bit !
Alain
Last edited by Acetronics2; - 13th January 2008 at 14:26.
************************************************** ***********************
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