SetPin(GPnn), FIN query


Author Message
carlschneider
Senior Member

Joined: 04/08/2023
Location: South Africa
Posts: 158
Posted: 02:04pm 26 Aug 2023      

Thanks for the response and guidance phil99, matherp and TassyJim, much appreciated.

Peter’s explanation has resonated and I now realize that to achieve 2 decimal precision I would need a gate time of 100s, ie a count of 5001 in 100s will yield the desired 50.01Hz.

For my intended usage I will have to stick with period measurement to derive the frequency.

The GPS route sounds fascinating Jim. I wonder if an external RTC, DS3231’s 1Hz output would be stable enough as a reference. I assume your implementation did some sort of synchronization and then measured the phase drift.

Thanks again for your assistance.