rtc clock source #18358
-
|
Most of MCUs may have rtc as integrated which may has clock source options such as ext xtal, int. rc osc, or pll on mcu clock. I could find many micropython projects on internet sites which have seperated RTC modules such as PCF85063A. I just wonder if the cheaper RTC modules with ext Xtal have better accuracy than internal RTCs of the MCUs. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
I think you are asking : Why ? I would expect a specialized clock board to have better accuracy , and support for leap-years DST etc , but if it is really cheap - then the accuracy may not be up to par. |
Beta Was this translation helpful? Give feedback.
-
Depends on the MCU. ESP8266 has a lousy RTC, for example. An external RTC such as DS3231 or MAX31328 will have an accuracy of about 2mins/yr, which is better than an uncalibrated MCU crystal oscillator. However some MCU's (STM for example) allow the oscillator to be calibrated to similar accuracy (given a reference time source). An external RTC will have battery backup - but some MCU's also support this. So there's no general answer. |
Beta Was this translation helpful? Give feedback.
Depends on the MCU. ESP8266 has a lousy RTC, for example. An external RTC such as DS3231 or MAX31328 will have an accuracy of about 2mins/yr, which is better than an uncalibrated MCU crystal oscillator. However some MCU's (STM for example) allow the oscillator to be calibrated to similar accuracy (given a reference time source). An external RTC will have battery backup - but some MCU's also support this.
So there's no general answer.