Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    【FAQ】全志XR806芯片 RTC时钟不能跑、有时候时间不准是什么原因?

    其它全志芯片讨论区
    xr806 xr872 faq 技术支持
    1
    1
    1455
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • q1215200171
      budbool LV 9 last edited by

      1、问题背景
      有客户反应,XR系列MCU在跑rtc模块时,读取时间一直是同一个值,或者出现时间与现实时间相比不准确。

      2. 问题描述
      RTC时钟不能跑、有时候时间不准是什么原因。

      3.解决方法
      (1)、先确定RTC使用的时钟源是内部震荡还是外部晶振。并且通过修改板级文件board_config.h中BOARD_LOSC_EXTERNAL这个宏定义来匹配相关配置(0是使用内部震荡作为震荡源,1是使用外部晶振),如果配置是外部晶振,但是却没有外接外部32.768khz晶振的话,RTC是跑不起来的。
      #define BOARD_LOSC_EXTERNAL 0 /* 0: inter 32k, 1: external 32k */

      (2)、使用内部震荡的话,由于是rc震荡产生时钟,所以受到温度漂移影响很大,所以客户如果需要精度高的计时,建议使用外部晶振来作为震荡源。

      1 Reply Last reply Reply Quote Share 0
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策