Qualcomm SM6115 平台RTC accuracy problem

Issues:

我们项目中使用的rtc对时有误差,大概24小时内会有十几秒到二十秒左右的误差,请问如何优化使误差在两三秒以内。(The rtc used in our project has an error in timing. There will be an error of about ten seconds to twenty seconds in about 24 hours. How to optimize the error within two or three seconds. The following is the relevant configuration of rtc we currently do in xbl, please help to analyze, thank you!)

c 复制代码
pm_driver_post_init ( void )
{
pm_err_flag_type err_flag = PM_ERR_FLAG_SUCCESS;

err_flag |= pm_app_vreg_clear_ocp_status();
err_flag |= pm_comm_write_byte(0x0 , 0x5A5B, 0xD0, 0x0); //rtc
err_flag |= pm_comm_write_byte(0x0 , 0x2845, 0x02, 0x0); //rtc

return err_flag;
}



Solved:

please try to config as below:
0x5A58 : 0x20
0x5a5B : 0XD0

and please also measure the xo out long time(or by trigger mode), normally the calibration will be on each 10s, please make sure the test methold is ok, thanks!

bash 复制代码
 读纽扣电池电压:/sys/bus/spmi/devices/spmi0-00/1c40000.qcom,spmi:qcom,pm6125@0:vadc@3100/iio:device0/in_voltage_vcoin_input



0X5A58
bit7:bit4 CAL_FREQ_RTC_DEFAULT  
0x2:CAL_PER_37mSEC
0x3:CAL_PER_75mSEC
0x4:CAL_PER_150mSEC
0x5:CAL_PER_300mSEC
0x6:CAL_PER_612mSEC
0x7:CAL_PER_1p25SEC
0x8:CAL_PER_2p5SEC
0x9:CAL_PER_5SEC
0xA:CAL_PER_10SEC
相关推荐
ZEGO即构开发者8 天前
如何用一句话让AI集成 ZEGO 产品
ai·实时互动·实时音视频·rtc
mftang11 天前
STM32 RTC 唤醒中断功能实现低功耗功能
stm32·单片机·嵌入式硬件·rtc·超低功耗
YouEmbedded14 天前
解码STM32 看门狗、低功耗与RTC外设
stm32·低功耗·rtc·看门狗·闹钟
南山电子nscn23 天前
爱普生超低功耗RTC:RX6110SA B型实时时钟模块优势特点
rtc·时钟芯片
无聊到发博客的菜鸟1 个月前
STM32 RTC时钟不准的问题
stm32·嵌入式·rtc·rtos
v_JULY_v2 个月前
Training-Time RTC——在训练时做动作分块:消除推理阶段的计算开销,让π0.6完成箱子装配与咖啡制作
rtc·训练时做rtc·机器人实时控制技术
矜辰所致3 个月前
CH58x 蓝牙芯片 SysTick、RTC、TMRx
沁恒微·时钟·rtc·systick·ch58x
chen_song_3 个月前
低时延迟流媒体之WebRTC协议
webrtc·rtc·流媒体
嵌入式老牛3 个月前
DrvBsp_I2C驱动_RTC(一)
单片机·嵌入式硬件·rtc
嵌入式老牛3 个月前
【无标题】
单片机·嵌入式硬件·rtc