<?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>ble time sync among nrf52840 devices high frequecy timer vs rtc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111854/ble-time-sync-among-nrf52840-devices-high-frequecy-timer-vs-rtc</link><description>Hi, 
 
 I am trying to use BLE time sync code and it seems working well with 16Mhz timer and rtc as well. 
 
 Here is the previous ticket. 
 
 
 One thing I noticed is about after stopping the time sync by calling ts_tx_stop (); 
 The timestamp with 16Mhz</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jun 2024 02:33:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111854/ble-time-sync-among-nrf52840-devices-high-frequecy-timer-vs-rtc" /><item><title>RE: ble time sync among nrf52840 devices high frequecy timer vs rtc</title><link>https://devzone.nordicsemi.com/thread/488587?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 02:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f49c1c1-4eb7-433f-9b1d-9048415684a5</guid><dc:creator>eleven-x_devteam</dc:creator><description>&lt;p&gt;Hi Audun,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply.&lt;/p&gt;
&lt;p&gt;I was testing with my custom boards and F/W and it turned out that there was another&amp;nbsp;sd_clock_hfclk control code for battery and temperature reading and that part was calling &amp;quot;sd_clock_hfclk_release(): so I verified that high frequency timer didn&amp;#39;t have that much time drift even after&amp;nbsp;ts_tx_stop() without any other &lt;span&gt;sd_clock_hfclk control code&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble time sync among nrf52840 devices high frequecy timer vs rtc</title><link>https://devzone.nordicsemi.com/thread/488476?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2024 11:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6477854-6604-415b-8e3d-3253b69f3af8</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/eleven_2d00_x_5f00_devteam"&gt;eleven-x_devteam&lt;/a&gt; ,&lt;/p&gt;
&lt;p&gt;it should come down to the accuracy of the 32 MHz crystal on your board. The nRF5x-DKs typically use a 30 ppm crystal, which when comparing two devices would give you a worst-case drift of 60 ppm (or 60 microseconds per second). Over a two hour period this should still be less than one second, so there seems to be something else going on that affects the drift if you see 14 seconds over this period.&lt;/p&gt;
&lt;p&gt;One thing that would significantly affect accuracy is if the high frequency clock source switches from the crystal oscillator to the internal one. The internal one is relatively inaccurate by comparison. However, as long as you dont call &lt;strong&gt;ts_disable() &lt;/strong&gt;or&lt;strong&gt; sd_clock_hfclk_release()&lt;/strong&gt;, the crystal oscillator should still be providing clock for the TIMERs.&lt;/p&gt;
&lt;p&gt;Are you using the example code without modification in your testing?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Audun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble time sync among nrf52840 devices high frequecy timer vs rtc</title><link>https://devzone.nordicsemi.com/thread/488333?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 12:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19c9c3ff-bffe-44aa-8700-d10a88dc2bce</guid><dc:creator>Sam D</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/eleven_2d00_x_5f00_devteam"&gt;eleven-x_devteam&lt;/a&gt;&amp;nbsp;We will look at this asap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>