Yeah, good ...but...

as your result is +/- 1 count on 65535 ... ( Timer is 16 bits ...no more )

precision is not really what you expected at first thread !!! we are very far from 20 Mhz +/- 1 hz.

sorry for the cold shower ...

Alain