<?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>Nordic Clock Drift with Internal LFCLK when trying to synchronize with an external client or another Nordic clock  (Nordic -nRF52840)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37564/nordic-clock-drift-with-internal-lfclk-when-trying-to-synchronize-with-an-external-client-or-another-nordic-clock-nordic--nrf52840</link><description>Hello, 
 I am using a nRF52840 with SDK 14.2 and I am trying to synchronize my &amp;quot;app timer&amp;quot; which uses the RTC1 with respect to an external client which is connected over TCP protocol. 
 Hardware Setup: nRF52840 is connected to a Wi-FI module over UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Aug 2018 08:49:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37564/nordic-clock-drift-with-internal-lfclk-when-trying-to-synchronize-with-an-external-client-or-another-nordic-clock-nordic--nrf52840" /><item><title>RE: Nordic Clock Drift with Internal LFCLK when trying to synchronize with an external client or another Nordic clock  (Nordic -nRF52840)</title><link>https://devzone.nordicsemi.com/thread/146446?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 08:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:427d883d-dbdd-4590-b049-d864ec7b595b</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Glad to hear^^&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic Clock Drift with Internal LFCLK when trying to synchronize with an external client or another Nordic clock  (Nordic -nRF52840)</title><link>https://devzone.nordicsemi.com/thread/145738?ContentTypeID=1</link><pubDate>Sat, 25 Aug 2018 00:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a51bd3d-7faf-4af2-9c7d-26d8c91051cc</guid><dc:creator>Cecylia</dc:creator><description>&lt;p&gt;Hi Haakon,&amp;nbsp;thanks for the reply! &amp;nbsp;So, based on your inputs,&amp;nbsp;and after much experiments, we decided to sync&amp;nbsp;the whole&amp;nbsp;system time from another&amp;nbsp;Nordic which has an external clock. This shows much better results :)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic Clock Drift with Internal LFCLK when trying to synchronize with an external client or another Nordic clock  (Nordic -nRF52840)</title><link>https://devzone.nordicsemi.com/thread/145057?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 08:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e6bd5d6-2271-4cd6-8f03-a1cc0368c325</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;The calibration is done with the&amp;nbsp;HF crystal if it is the active HF clock source at the time of calibration. I believe you can use the method your linked to.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also&amp;nbsp;&lt;a title="Low frequency RC oscillator (LFRC), Normal mode" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/clock.html?cp=2_0_0_4_3_3_3#unique_392327657"&gt;Low frequency RC oscillator (LFRC), Normal mode&lt;/a&gt;&amp;nbsp;says +/- 500ppm is after calibration, +/- 5000 without calibration.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic Clock Drift with Internal LFCLK when trying to synchronize with an external client or another Nordic clock  (Nordic -nRF52840)</title><link>https://devzone.nordicsemi.com/thread/145000?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 22:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76760ab7-fd33-4f4b-9313-90ebb002ba50</guid><dc:creator>Cecylia</dc:creator><description>&lt;p&gt;Hi Haakon,&lt;br /&gt;&lt;br /&gt;For 1) &amp;amp; 2) Since we don&amp;#39;t use external crystal,&amp;nbsp;do you mean calibrating it with the HFINT?&amp;nbsp; The &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Fchips%2Fnrf52840.html"&gt;spec&lt;/a&gt; says LFRC is already ~500ppm.&amp;nbsp; Is this with or without calibration with HFINT?&lt;br /&gt;And, did you mean calibrating &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/177/calibrate-internal-32khz-rc-oscillator-using-the-16mhz-crystal"&gt;using this method?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic Clock Drift with Internal LFCLK when trying to synchronize with an external client or another Nordic clock  (Nordic -nRF52840)</title><link>https://devzone.nordicsemi.com/thread/144857?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 08:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d01b60e9-22d4-4ec2-8882-1dd1e942dc27</guid><dc:creator>haakonsh</dc:creator><description>&lt;ol&gt;
&lt;li&gt;If the drift is increasing with time then something is terribly wrong, the drift should be fairly constant given that you&amp;#39;re calibrating the RC oscillator that often.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Calibrating at 4 second interval should be more than enough to keep the drift at ~500ppm&lt;/li&gt;
&lt;li&gt;You&amp;#39;ve got two different systems that you want to synchronize the time between, one is the nRF to Client and the other is nRF to nRF. &lt;br /&gt;&lt;br /&gt;In the first system it makes sence to use a UNIX timestamp taken from some generic timestamp server and share that with the nRF device periodically in order to update its calendar. It will have limits to its accuracy due to the fact tha the Client-to-nRF communication is non-deterministic since we cannot control the wifi stacks in the computer and module. You will always get a delay from the time your client want to update the clock of the nRF device until the nRF device has updated its clock, and this delay will have a significant variance over time.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;In the second system you have nRF-to-nRF communication and this enables you to have very accurate time synchronization because you can control both radio stacks. This means the you&amp;nbsp;can have fairly deterministic delays from the time one nRF device wants to update the clock of anothe nRF device and to the time when the other nRF device has updated its clock (low variance). This in turn enables you to predict this delay and add it to the timestamp used to update the second nRF device&amp;#39;s clock, thereby reducing the two clocks time difference.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;See&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/wireless-timer-synchronization-among-nrf5-devices"&gt;https://devzone.nordicsemi.com/b/blog/posts/wireless-timer-synchronization-among-nrf5-devices&lt;/a&gt;&amp;nbsp;for details.&lt;/li&gt;
&lt;li&gt;That&amp;#39;s ok.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic Clock Drift with Internal LFCLK when trying to synchronize with an external client or another Nordic clock  (Nordic -nRF52840)</title><link>https://devzone.nordicsemi.com/thread/144777?ContentTypeID=1</link><pubDate>Sat, 18 Aug 2018 01:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ec5a67-2f19-423c-9c15-757964c5923e</guid><dc:creator>Akhil Bhargav Josyabhatla</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;1) I am noticing a 2-3% drift and it increases gradually with time.&lt;br /&gt;2) I am calibrating my LFRC at 4 Seconds interval.&lt;br /&gt;3) I am confused about this and would like help with this.&lt;br /&gt;4) Yes, But we have hardware limitation. Cannot add the external crystal now.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic Clock Drift with Internal LFCLK when trying to synchronize with an external client or another Nordic clock  (Nordic -nRF52840)</title><link>https://devzone.nordicsemi.com/thread/144715?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 12:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f55c560d-14ea-4b62-99af-4aec43cad216</guid><dc:creator>haakonsh</dc:creator><description>&lt;ol&gt;
&lt;li&gt;How much drift are you experiencing?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Are you calibrating the LFRC at regular intervals?&lt;/li&gt;
&lt;li&gt;How are you synchronizing the clocks?&lt;/li&gt;
&lt;li&gt;An external crystal will reduce the drift by quite a lot.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>