Quote Originally Posted by savnik View Post
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