How to calculate the PPM deviation for 512Hz?
Hi ST team,
I referred the Application notes from the ST's for RTC temperature compensation
Using STM8AL3189 MCU , Which has both positive and negative ppm compensation using CALM and CALP
From the APP notes, ACC(ppm) = crystal deviation + k * (T -T0)^2;
How to find the crystal deviations room temperature. i followed as per app notes
32768 Hz prescalar value , CALOUT is 512Hz
when measured using the logic analyzer i get 512.030Hz
((512/512.030) - 1) * 1000000 = >
0.99994140968302638517274378454387 - 1 * 1000000
-5.8590316973614827256215456125618e-5 * 1000000
-58.5 PPM
it is correct ? any suggestion helps to move forward
Thanks in advance
Regards,
Anand 
