DL8EBD
positron Urgestein
Offline
Posts: 1924
|
|
gelöst: Genauigkeit der RTC
« on: 05. November 2017, 10:33:54 »
|
|
ich hab mittlerweile +450ppm Korrektur eingestellt und meine RTC geht immer noch 15 Sekunden pro Tag nach. Wie sieht das bei den anderen Betatestern aus?
|
« Last Edit: 24. November 2017, 21:45:40 by DL8EBD » |
Logged
|
bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da. vy73 Thomas
|
|
|
hb9trt
Urgestein
Offline
Posts: 646
Ich liebe dieses Forum!
|
|
Re:Genauigkeit der RTC
« Reply #1 on: 05. November 2017, 11:10:54 »
|
|
Hallo Thomas
Also meine geht leicht vor. Nach ca. 2 Wochen etwa 1 Minute. Korrigiert habe ich noch nichts. Aber geht nicht bös daneben.
Gruss Reto
|
|
Logged
|
|
|
|
|
DL8EBD
positron Urgestein
Offline
Posts: 1924
|
|
Re:Genauigkeit der RTC
« Reply #3 on: 05. November 2017, 12:10:28 »
|
|
Andreas, genau diesen Verdacht hege ich auch, denn ich habe keinerlei "Verbesserung" der Abweichung festgestellt. Oder muss man die RTC jedes mal erst mit RESET zurücksetzen? Wozu ist der Menüpunkt eigentlich?
@Reto 2 Minuten in 14 Tagen ist für eine Quarzuhr inakzeptabel. Solche Abweichungen kenne ich sonst nur von meiner Schweizer Armbanduhr
|
|
Logged
|
bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da. vy73 Thomas
|
|
|
S53DZ
schon länger dabei
Offline
Posts: 58
Ich liebe dieses Forum!
|
|
Re:Genauigkeit der RTC
« Reply #4 on: 05. November 2017, 17:32:32 »
|
|
Probably I was lucky with the RTC.
Here is the story: I took a 32k quartz from an old ARM board, together with two 20 pF! capacitors. They were an obvious good match for the impedance of this particular quartz. However these Cs influence a little bit the XTAL frequency. With a ppm correction = 0ppm I reached an accuracy of about 5 sec pro 3 months. I think this is also a target accuracy for such RTC, considering the possible temperature drifts in particular. Working setup: mcHF, STM32F429, 12.6V. (Not the OVI40! - so probably I am off-topic here.)
Unfortunately I can not advise you on which particular crystal to take but I think it matters.
73 Bojan
|
« Last Edit: 10. November 2017, 08:04:55 by S53DZ » |
Logged
|
|
|
|
|
DB4PLE
positron Urgestein
Offline
Posts: 1278
|
|
Re:Genauigkeit der RTC
« Reply #6 on: 05. November 2017, 19:38:56 »
|
|
Hallo,
der Code der RTC PPM Korrektur wurde 1:1 vom F4 übernommen. Da auch das RTC Modul im Prinzip identisch ist, bin ich davon ausgegangen, dass das auch funktioniert. Das scheint nicht zu stimmen. Bitte macht einen GitHub Issue dazu, danke!
Kurzer Blick in den Code des HAL: auch dort sieht es identisch aus im Vergleich F4 und F7, es ist also nicht klar warum das nicht geht.
73 Danilo
|
« Last Edit: 05. November 2017, 19:42:51 by DB4PLE » |
Logged
|
|
|
|
DL8EBD
positron Urgestein
Offline
Posts: 1924
|
|
Re:Genauigkeit der RTC
« Reply #7 on: 05. November 2017, 20:10:33 »
|
|
Danilo, ich bin gerade auf 488ppm gegangen, das ist das Maximum was einstellbar ist und plötzlich geht die Uhr innerhalb 2h um 20 Sekunden vor.
Das muss ich jetzt aber nochmal genauer untersuchen.
Danilo, kann man zu Messzwecken den Sekundentakt mal auf einen freien GPIO führen? Dann kann ich die Periodendauer mit dem HP messen und sehen wie die RTC Calibration wirkt (oder eben nicht wirkt)
|
|
Logged
|
bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da. vy73 Thomas
|
|
|
S53DZ
schon länger dabei
Offline
Posts: 58
Ich liebe dieses Forum!
|
|
Re:Genauigkeit der RTC
« Reply #8 on: 17. November 2017, 19:08:15 »
|
|
I have measured a short-time influence of RTC calibration. Please, find attached the measurement table.
It seems that it works well only for the PPM values from -487 to zero. EDIT: these were made on STM32F4 but if on F7 there is the same code, perhaps it could help ...
73 Bojan
|
|
|
|
DL8EBD
positron Urgestein
Offline
Posts: 1924
|
|
Re:Genauigkeit der RTC
« Reply #9 on: 17. November 2017, 19:42:35 »
|
|
Bojan, at the moment I'm at +466ppm and the drift it acceptable
|
|
Logged
|
bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da. vy73 Thomas
|
|
|
S53DZ
schon länger dabei
Offline
Posts: 58
Ich liebe dieses Forum!
|
|
Re:Genauigkeit der RTC
« Reply #10 on: 17. November 2017, 21:35:33 »
|
|
Thomas,
nice to hear that you are just inside ... May I ask you with which FW and on which MCU?
You can lower a bit the XTAL frequency by adding some additional Cs to the crystal impedance matching Cs but you then also mismatch the XTAL and probably gain little more oscillator quiescent current when on battery.
But on the other hand if this compensation for +PPM values really does not work properly you would again be outside the 488 limits.
Added: My very last quick measurement using +400ppm just go along your observation: By choosing higher +PPM values time compensation is falling and not raising as with -PPM values. So, by this I think it is a FW issue.
73 Bojan
|
« Last Edit: 17. November 2017, 22:22:30 by S53DZ » |
Logged
|
|
|
|
DB4PLE
positron Urgestein
Offline
Posts: 1278
|
|
Re:Genauigkeit der RTC
« Reply #11 on: 17. November 2017, 23:02:33 »
|
|
Hi Bojan,
your observation is right, there is a firmware issue. I misunderstood the parameter concept for the Hal Smooth Calib function. That leads to correct behavior when negative ppm values are used and positive ppm values are basically also negative ones but with opposite sign (large values -> small correction). Will fix this.
73 Danilo
|
|
Logged
|
|
|
|
DL8EBD
positron Urgestein
Offline
Posts: 1924
|
|
Re:Genauigkeit der RTC
« Reply #12 on: 18. November 2017, 14:52:28 »
|
|
Danke Danilo!
Ich teste die Daily gerade
|
|
Logged
|
bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da. vy73 Thomas
|
|
|
peter_77
Urgestein
Offline
Posts: 735
THE mcHF and UHSDR forum !
|
|
Re:Genauigkeit der RTC
« Reply #13 on: 18. November 2017, 20:23:30 »
|
|
Interessant das minor Fixes wie der Uhrenkorrekturfaktor nun gleich Änderungen der Versionsnummern an 2ter Stelle nach sich ziehen. Erwartet hätte man ja was an 3ter Stelle oder geht es jetzt mit Siebenmeilen auf die 3.0.0 zu ??
|
« Last Edit: 18. November 2017, 20:24:06 by peter_77 » |
Logged
|
|
|
|
S53DZ
schon länger dabei
Offline
Posts: 58
Ich liebe dieses Forum!
|
|
Re:Genauigkeit der RTC
« Reply #14 on: 19. November 2017, 08:40:21 »
|
|
Danilo,
nice job there with the last fix. It works also in +ppm direction now (I didn't re-check the -ppm direction though).
73 Bojan
|
|
|
|