This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC2340R5:如何使 RTC 与实际当前时间同步

Guru**** 2325560 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1497627/cc2340r5-how-to-synchronize-rtc-with-real-world-current-time

器件型号:CC2340R5

工具/软件:

这里是新手问题-您如何建议我使系统时间与现实世界的时间同步?

我的大脑想:哦,把当前的时间写在 TIME524M,但它是只读的。  因此、我认为有必要进行偏移  

假设智能手机与我的处理器同步、我会将实际的当前时间保存到一个变量中

currentUnixEpochTimestamp = 1743909922;

然后、我将重置 RTC 并执行类似的操作  

currentTime = RTC.TIME524M + currentUnixEpochTimestamp;

想知道专业人员是如何做到这一点的、不会因系统复位而失望