I am using an atmega328p in a standalone application.
I have an accurate clock based on a 8MHz crystal and the AVR’s TIMER1 counter. When this timer creates an interrupt my plan is to simply read the value of ACO (bit 5 of the ACSR register). This is to happen in an infinite loop. So far it is working but I am wondering if there are any weird timing issues I should watch out for (like a synchronizer adding jitter to my clock) or if I should use a different interrupt scheme.
Any hints are appreciated