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
相关推荐
Oflycomm2 天前
从硬件到智能:AI摄像头平台驱动安防与自动驾驶融合升级
人工智能·iot·qualcomm·qogrisys·ai摄像头
海水冷却9 天前
2026 主流 RTC SDK 选型参考,7 大维度横向对比
实时音视频·rtc
海水冷却20 天前
从 Clubhouse 的崛起与陨落,看语聊房 RTC SDK 的变化
rtc·语聊房
CosimaLi24 天前
读取RTC出现 Power loss detected, invalid time; RTC_RD_TIME: Invalid argument
rtc
普中科技1 个月前
【普中STM32F1xx开发攻略--标准库版】-- 第 34 章 RTC 实时时钟实验
stm32·单片机·嵌入式硬件·开发板·rtc·实时时钟·普中科技
【 STM32开发 】1 个月前
【STM32 + CubeMX 教程】RTC 实时时钟 之 日历 -- F407篇
stm32·cubemx·rtc·hal·实时时钟·f407
嵌入式学习和实践2 个月前
单片机 STM32F103 RTC(实时时钟)的配置和使用
stm32·单片机·rtc
ZEGO即构开发者2 个月前
如何用一句话让AI集成 ZEGO 产品
ai·实时互动·实时音视频·rtc
mftang2 个月前
STM32 RTC 唤醒中断功能实现低功耗功能
stm32·单片机·嵌入式硬件·rtc·超低功耗
YouEmbedded3 个月前
解码STM32 看门狗、低功耗与RTC外设
stm32·低功耗·rtc·看门狗·闹钟