Hi everybody
I'm using the Capture register of TimerA1 TACCR1 in order to measure the 32768Hz quartz error at room temperature.
Basically I supply a 1Hzsignal with 1ppm error and after a certain numer of seconds i calculate the difference on the TACCR register.
More or less i used the idea found on slap107 (implementing a Temperature Compensated RTC).
The system works quite well, but in order to achieve a <5ppm compensation @25°C I must run the calibration for about 30s.
Someone told me to use SMCLK (in my case is 1.048576MHz) to source Timer A (i.e. to use DCO instead of the quartz to calculate the error).
I don't have a clear idea about how DCO and FLL work, but I suspect that the error of SMCLK is not equal to the quartz error.
Am I wrong?
Do you have some ANs or links to suggest me?
Thanks in advance