<?xml-stylesheet type="text/xsl" href="https://test-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/"><channel><title>Wireless timer synchronization among nRF5 devices</title><link>/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><description>Introduction
In a variety of use cases there is a need to share a common clock among multiple devices. Such a common clock can be used for many purposes, for example by having each node in a network perform an action at exactly the same time, or acc</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Mon, 01 Mar 2021 13:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user93336</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thank you very much for this great blog entry.&lt;/p&gt;
&lt;p&gt;For our application we need a synchronous counter on central and peripheral, which increments every 1ms.&lt;br /&gt;The counter on central and peripheral should always contain the same value.&lt;/p&gt;
&lt;p&gt;This blog seems like a great starting point for this.&lt;br /&gt;Can you give us please some information, how to implement this properly?&lt;/p&gt;
&lt;p&gt;Thank you very much in advance.&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Sun, 31 Jan 2021 16:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user96522</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello! my nrf52811 chip does not support timers 3 and 4 and EGU3. in the code you are using this. how can i replace timer 3 with register 4. and how can i replace EGU3?&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Wed, 27 Jan 2021 19:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user96522</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello! my nrf52811 chip does not support timers 3 and 4 and EGU3. in the code you are using this. how can i replace timer 3 with register 4. and how can i replace EGU3?&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Sat, 23 Jan 2021 13:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user96522</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello! my nrf52811 chip does not support timers 3 and 4 and EGU3. in the code you are using this. how can i replace timer 3 with register 4. and how can i replace EGU3?&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Sun, 15 Mar 2020 06:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user25009</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Hi , Please Advice , i want to synchronize the internal RTC . so both device actually be synchronize in the HH:MM:SS:mSEC&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Tue, 03 Dec 2019 16:47:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user85711</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Super useful library. Does not work currently under SES Release 4.03b though. For everybody stumbling over this. There is a functioning workaround: &lt;a rel="nofollow" target="_blank" href="https://github.com/nordic-auko/nRF5-ble-timesync-demo/issues/2"&gt;github.com/.../2&lt;/a&gt;&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Thu, 04 Oct 2018 14:52:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user6231</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi. Thanks for the post. My only question is: if I am for example sending sync packet like every 10s and during the moment of packet transmission receiver is busy sending BLE packet, will I miss the synchronization packet?&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Tue, 17 Jul 2018 13:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user72298</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;does this affect data transmission in ble_central and ble_peripheral ? thank&amp;#39;s&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Wed, 09 May 2018 09:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user71509</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This is a great post and the synchronization accuracy is quite high. Thanks a lot!&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Wed, 09 May 2018 09:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user71509</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This is a great post and the synchronization accuracy is quite high. Thanks a lot!&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Mon, 20 Nov 2017 09:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user2167</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Nick, I added an SDK 14.2 port of this code to the GitHub project and included project files for Segger Embedded Studio: &lt;a rel="nofollow" target="_blank" href="https://github.com/nordic-auko/nRF5-ble-timesync-demo/tree/master/nRF5_SDK_14.2.0_17b948a"&gt;github.com/.../nRF5_SDK_14.2.0_17b948a&lt;/a&gt;&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Sun, 19 Nov 2017 06:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user66635</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Would you guys be able to update this using SDK 14 or upload a Segger Embedded Studio project to the GitHub?&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Fri, 03 Nov 2017 12:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user2167</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Ah yes, Nicolas, you are right about the ADDRESS event. I&amp;#39;ll update my comment to reflect this, and make the formatting more clear regarding the 15 microseconds.&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Fri, 03 Nov 2017 12:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user20698</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;The TX_CHAIN_DELAY is from 15us before NRF_RADIO-&amp;gt;TASKS_START in tx to NRF_RADIO-&amp;gt;EVENTS_ADDRESS (instead of RADIO.END) in rx.&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wireless timer synchronization among nRF5 devices</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices</link><pubDate>Fri, 03 Nov 2017 11:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52adcbee-98c0-4ae0-ae19-27a5a8473b8e</guid><dc:creator>user2167</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;TX_CHAIN_DELAY is indeed somewhat of a magic value. It was intended to capture all (constant) delays associated with sending and receiving the packet. Specifically, the time it takes from the RADIO.START task is called on the transmitter, until the RADIO.ADDRESS event has happened on the receiving side, minus the time it takes for the radio waves to travel between the radios (this will be a relatively small number anyway). Additionally, there is a 15 microsecond delay incorporated into TX_CHAIN_DELAY by the code design (explained in next the next paragraph).&lt;/p&gt;
&lt;p&gt;The timing master is using a 16 MHz TIMER and PPI to capture the time value (from another TIMER) and triggering the RADIO.START task. The same can be achieved by the CPU directly, but potentially introducing jitter from flash wait states and cache. The capture+start TIMER currently have a 15 microsecond delay between the timer value capture and radio start.
These 15 microseconds are included in the TX_CHAIN_DELAY value.&lt;/p&gt;
&lt;p&gt;Note that the unit value for TX_CHAIN_DELAY is 1/16 microsecond. TX_CHAIN_DELAY = 700 = 43.75 microseconds&lt;/p&gt;
&lt;p&gt;The value of TX_CHAIN_DELAY was determined using a logic analyzer, measuring the offset between two nRF52-DKs.
Note that there may were well be chip variations that can influence this parameter.&lt;/p&gt;
&lt;p&gt;The 32 MHz crystal mounted on the nRF52-DK, which was used for these measurements, is rated as 10 ppm.&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1101&amp;AppID=12&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>