Hi, Wassup
As Timer 0 is a 8 bits timer ... and we suppose clock is 4Mhz ( ... )
I will be necessary to have a counting loop in the interrupt stub , because interrupts will occur every 256 µs as a maximum
The other solution is to use Timer 1 that has a 16 bits counting range ... and won't need any calculations.
Have a SEARCH for "PicMultiCalc" from Mr E. it's a nice tool to help for Timer designs ...
Alain
************************************************** ***********************
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