
Originally Posted by
savnik
Now count the TMR0 and also count the prescaler (256)
result var word ' 16 bit result of count, high from tmr0 low from prescaler
TMR0 = result.Byte1
prescaler = result.Byte0
But i cann't take the decimal numbers , only the integer
Hi, Savnik,
so, you want to use a ... 24 bits counter !!!
One more good reason to turn to 18F1320 AND use PBPL ... instead of PBPW !
But, once more ... will you tell us the PIC Osc frequency and the frequency range you intend to measure at PORTA.4
... as I smell something really interesting ...
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