<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How much time drift is expected on NRF52832 with an external 32Khz 20ppm over a year</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107412/how-much-time-drift-is-expected-on-nrf52832-with-an-external-32khz-20ppm-over-a-year</link><description>For example, suppose the following example: 
 
 I connect to the NRF52832 for the first time via a mobile app and pass it an accurate timestamp (seconds from epoc) 
 the NRF gets a local timestamp ( app_timer_cnt_get() ) and stores both the local timestamp</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jan 2024 16:36:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107412/how-much-time-drift-is-expected-on-nrf52832-with-an-external-32khz-20ppm-over-a-year" /><item><title>RE: How much time drift is expected on NRF52832 with an external 32Khz 20ppm over a year</title><link>https://devzone.nordicsemi.com/thread/464676?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2024 16:36:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fe147ef-95af-4706-a2e2-0d762f2ee9eb</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Only 2nd place, but happy with that :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How much time drift is expected on NRF52832 with an external 32Khz 20ppm over a year</title><link>https://devzone.nordicsemi.com/thread/464645?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2024 15:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2c33a1d-8652-401e-98d6-44bb50f7e299</guid><dc:creator>toastedowl</dc:creator><description>&lt;p&gt;Thank you very much for this detailed information!&lt;/p&gt;
&lt;p&gt;I hope you won the contest!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How much time drift is expected on NRF52832 with an external 32Khz 20ppm over a year</title><link>https://devzone.nordicsemi.com/thread/464464?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 17:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:170e45e1-ef45-4d66-a090-abe0dd3adc29</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;About 20 years ago I wrote a contest entry for RTC 32kHz crystal temperature compensation for the MSP430 but it is equally applicable to the nRF52832. Feel free to use anything useful, with credit for anything I wrote.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705424992157v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll attach the c, h and xls files together with the pdf and xls if this system allows all that.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2475.RtcTempCompensation.c"&gt;devzone.nordicsemi.com/.../2475.RtcTempCompensation.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3542.RtcTempCompensation.h"&gt;devzone.nordicsemi.com/.../3542.RtcTempCompensation.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3482.MSP430-RTC-Temperature-Compensation.pdf"&gt;devzone.nordicsemi.com/.../3482.MSP430-RTC-Temperature-Compensation.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/RtcCrystalFrequencyCompensation.xls"&gt;devzone.nordicsemi.com/.../RtcCrystalFrequencyCompensation.xls&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How much time drift is expected on NRF52832 with an external 32Khz 20ppm over a year</title><link>https://devzone.nordicsemi.com/thread/464447?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 15:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bde03ef-66f1-496a-a837-56ae6d0343a4</guid><dc:creator>toastedowl</dc:creator><description>&lt;p&gt;Here is the specification for the crystal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/crystal.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://support.epson.biz/td/api/doc_check.php?dl=app_FC-135&amp;amp;lang=en"&gt;https://support.epson.biz/td/api/doc_check.php?dl=app_FC-135&amp;amp;lang=en&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Assume temperature is 0 - 40 Celsius.&amp;nbsp; If easier, maybe the calculations at the boundaries and middle would&amp;nbsp;shed enough light&amp;nbsp;- e.g. what would the answer to the original question be if (a) it was a constant 0 degrees the whole year (b) it was a constant 20 degrees the whole year (c) it was a constant 40 degrees the whole year.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How much time drift is expected on NRF52832 with an external 32Khz 20ppm over a year</title><link>https://devzone.nordicsemi.com/thread/464376?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 12:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75634b5a-3252-4150-bdbb-36825ac2a995</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I think this question is not completely related to nRF related solutions but a general question in how much drift to expect over time given the accuracy of external clocks.&amp;nbsp;&lt;/p&gt;
[quote user=""]What is the worst case scenario for the difference between 365*24*60*60 - (latest local timestamp - original local timestamp)[/quote]
&lt;p&gt;nRF app timer totally relies on the internal RTC ticking and the accuracy of the internal RTC is directly related to the accuracy of the clock being used. So you need to check the specifications of the external oscillator or crystal manufacturer to see what is the worst and best case accuracy in different temperatures and humidity. You should be able to calculate the&amp;nbsp;&lt;strong&gt;average&lt;/strong&gt; drift of this clock over any period of time based on this worst and best accuracy given in ppm.&lt;/p&gt;
[quote user=""]Is the delta mostly linear so I could then adjust each 10 minute timestamp to get a close match of the real time the reading was taken?[/quote]
&lt;p&gt;This again depends on the external clock being used and there is no generic answer that can be given. But most likely the delta is not linear in my experience and the delta curve will be different with time/temperature and humidity. Only the manufacturer of the external clocks can give better range on how the delta behaves in different conditions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>