I wrote a simple program to count frequency, I have a precision ocxo divided down to 1hz, this goes to pin 8 (uno) the capture input, and the frequency to be measured goes to pin 5.
Pin 8 is configured as a capture interrupt, and pin 5 as external clock for timer 1.
It works but I keep getting spurious errors, often 65535 (oxffff) too high.
So I installed pauls FreqCount library, it works but its not very accurate using the uno's built in xtal osc, can the library be modded to use pin8's capture interrupt so I can use my accurate gate signal?, or should I dig further into my existing code.
Pin 8 is configured as a capture interrupt, and pin 5 as external clock for timer 1.
It works but I keep getting spurious errors, often 65535 (oxffff) too high.
So I installed pauls FreqCount library, it works but its not very accurate using the uno's built in xtal osc, can the library be modded to use pin8's capture interrupt so I can use my accurate gate signal?, or should I dig further into my existing code.