RTC smooth calibration and verification?
Hi,
I m using the smooth calibration
tim1 is using an external clock 1Hz from signal generator and channel 1 is working in output compare mode generating interrupt every 32 seconds, tim2 is using LSE and channel 1 is in input capture mode.
When the interrupt from tim1 triggers, I m reading the captured data CCR1 and calculate the difference from the expected value and calling the HAL_RTCEx_SetSmoothCalib function.
expected value=1048576
captured=1048505
When the interrupt triggers again, I get a close value again shouldn't it be near 0 when it is calibrated?
And what is the idea calibration out pin 512 Hz as far as I understand it should be stable at 512 Hz, but my values change 512.7 Hz, 511.9 Hz 512.3 Hz it is not stable.
How Do I know it is calibrated?