RTC value is drifting too much. Any solution?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Ma-_4161786
Level 1
Level 1
5 likes given First like given

Hello everyone

I am using Wiced Studio and PSoC62.

I have modified the existing sntp_get_time example code to automatically set the RTC time at the beginning of code. After continuously running the PSoC62 device for ~20 hours the difference between STNP time and RTC time is more than 7 mins.

Is there any way to decrease this difference?

AT the start the SNTP and RTC time and date values:

RTC start.png

After ~20 hours:

RTC error.png

0 Likes
1 Solution
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello,

The accuracy of RTC component is defined by the accuracy of the connected external clock source. Can you please let us know the clock source you are using to provide input to the RTC component. The RTC component is driven by the Clk_Bak clock source. It is recommended to drive the Clk_Bak by the WCO, if it present in design, instead of the ILO. In case WCO is absent on the board you can use an external crystal (32.768-kHz) with high accuracy.

The RTC inaccuracy is ±1minutes/year (room temperature) if RTC clock source is ±2ppm calibrated.

Best Regards

Ekta

View solution in original post

0 Likes
1 Reply
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello,

The accuracy of RTC component is defined by the accuracy of the connected external clock source. Can you please let us know the clock source you are using to provide input to the RTC component. The RTC component is driven by the Clk_Bak clock source. It is recommended to drive the Clk_Bak by the WCO, if it present in design, instead of the ILO. In case WCO is absent on the board you can use an external crystal (32.768-kHz) with high accuracy.

The RTC inaccuracy is ±1minutes/year (room temperature) if RTC clock source is ±2ppm calibrated.

Best Regards

Ekta

0 Likes