<?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>Peripheral Timer Example - Timing inconsistent across different boards</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39861/peripheral-timer-example---timing-inconsistent-across-different-boards</link><description>Greetings, 
 I&amp;#39;m working on the TIMER example ( ⁨nRF5_SDK_15.2.0_9412b96⁩ ▸ ⁨examples⁩ ▸ ⁨peripheral⁩ ▸ ⁨timer⁩ ) on a nRF52832 with no changes to the code. Across 5 different boards - Rigado BMD-300-EVAL (3 boards), Rigado BMD-350-EVAL (1 board), and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Oct 2018 17:36:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39861/peripheral-timer-example---timing-inconsistent-across-different-boards" /><item><title>RE: Peripheral Timer Example - Timing inconsistent across different boards</title><link>https://devzone.nordicsemi.com/thread/154722?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 17:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9985296-efb4-4f0e-a2c8-89dd619f6d6a</guid><dc:creator>Bob Recny</dc:creator><description>&lt;p&gt;All boards are now giving a solid 2.000 sec interval.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral Timer Example - Timing inconsistent across different boards</title><link>https://devzone.nordicsemi.com/thread/154628?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 08:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55a287fc-27e7-483f-a311-e76d15b4e4cd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is nothing else going on in this example, so the timing is deterministic (in clock cycles) even if you don&amp;#39;t use PPI. The problem is likely that you are using the internal RC oscillator instead of the crystal oscillator, as that is not started in the TIMER example.&lt;/p&gt;
&lt;p&gt;The cleanest way to start it is via the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/hardware_driver_clock.html?cp=4_0_0_2_0_0"&gt;Clock driver&lt;/a&gt;, as that can be used regardless of whether you use the SoftDevice or not. You can modify the Timer example from SDK 15.2 as shown by this diff:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7947f7587e5442bc84906b4585fcb337/main.c.diff"&gt;devzone.nordicsemi.com/.../main.c.diff&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that you also need to update the sdk_config.h file as shown below and add nrf_drv_clock.c and nrfx_clock.c to the project in order to use the clock driver.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7947f7587e5442bc84906b4585fcb337/sdk_5F00_config.h.diff"&gt;devzone.nordicsemi.com/.../sdk_5F00_config.h.diff&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>