Hi Bruce,

Thanks for the info. I now remember seeing that app note many years ago.

I also found this thread which has helped me get something up and operational on a 16f877 for starters.

http://www.picbasic.co.uk/forum/showthread.php?t=1137

I used Timer1 (T1CKI) as the input (as it is 16bit) and Timer0 with a period of 1mS for the timing. I had to fudge the resulting values just a bit as there is a small error due to timer resolution and program overhead.


Andy