How to convert Accuracy(ppm) to CALP&CALM values when calibrate RTC ?
How to convert Accuracy(ppm) to CALP&CALM values from Temperature-Accuracy graph from RTC Calibration by temperature ?
How to convert Accuracy(ppm) to CALP&CALM values from Temperature-Accuracy graph from RTC Calibration by temperature ?
You're probably talking about Smooth Calibration right now, right?
It makes sense to carefully work through and understand the corresponding chapter "RTC smooth digital calibration" in the respective reference manual, especially because it also mentions other special features. For example, CALP cannot be set if PREDIV_A is less than 3.
In summary, the Smooth Digital Calibration works as follows:
The reference manual also mentiones the formula [1] for fCAL:
fCAL = fRTCCLK x (CALPx512 - CALM)/(2^20 - CALPx512 + CALM)
where CALP can have the value 0 or 1 and CALM is in the range from 0...511
If you change this formula, you'll get [2]:
ppm = (CALPx512 - CALM)/(2^20 - CALPx512 + CALM) * 10^6
This results in the following table with the most important key figures:
If you want to convert a given temperature (ppm) curve into the values for CALM and CALP, you have to do this in two steps:
Good luck!
/Peter
<edit>@TDK was faster... :beaming_face_with_smiling_eyes: </edit>
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.