Ok, Vlad

Erroneous, erroneous ... you're joking, I hope !!! 2x10µs for a 1ms period is 2% ... use a 20 Mhz Xtal and it will be 2x2µs ... .4% !!!

The limitation is in maths involved.

You want a high precision wide range freq. meter ??? ... begin by considering your Xtals precision and The Pic Osc stability vs temp. ...

the only way is to use timers and interrupts ... with additionnal variables that extend timers range.

somewhat like you started with ...

but AT LEAST using Darrel's instant interrupts ... and probably the "N Bits maths" both from Darrel's goodies.

Alain