<?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>Change Clock Source NRF52832 app beacon example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15363/change-clock-source-nrf52832-app-beacon-example</link><description>Hello, 
 I am working with the newest revision of the nRF52 Development Kit and the app_beacon example.
I try to change the clock source for the following code: 
 nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

// Initialize the SoftDevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Aug 2016 11:51:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15363/change-clock-source-nrf52832-app-beacon-example" /><item><title>RE: Change Clock Source NRF52832 app beacon example</title><link>https://devzone.nordicsemi.com/thread/58703?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2016 11:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e53792e2-a947-4d6d-ac30-f3080583fb23</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;.xtal_accuracy is ignored for RC.  you can set it to 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Clock Source NRF52832 app beacon example</title><link>https://devzone.nordicsemi.com/thread/58701?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 15:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11e7feba-4820-4e3c-9c67-94ccc592aa1f</guid><dc:creator>Luke</dc:creator><description>&lt;p&gt;Thanks, now it works!!
The configuration I chose:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,            \
                             .rc_ctiv       = 16,                                \
                             .rc_temp_ctiv  = 2,                                \
                             .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Clock Source NRF52832 app beacon example</title><link>https://devzone.nordicsemi.com/thread/58702?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 07:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99def40f-abb1-4ff1-9bf2-067cd40f5ba9</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hi Luke&lt;/p&gt;
&lt;p&gt;You have to set the calibration interval &lt;code&gt;rc_ctiv&lt;/code&gt; if you are using &lt;code&gt;NRF_CLOCK_LF_SRC_RC&lt;/code&gt;. See the documentation for the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/structnrf__clock__lf__cfg__t.html"&gt;nrf_clock_lf_cfg_t&lt;/a&gt; struct. As it says:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;uint8_t nrf_clock_lf_cfg_t::rc_ctiv&lt;/p&gt;
&lt;p&gt;Only for NRF_CLOCK_LF_SRC_RC:
Calibration timer interval in 1/4
second
units (nRF51: 1-64, nRF52: 1-32).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And for nRF52 specifically:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;For nRF52, the application must ensure
calibration at least once
every 8 seconds to ensure +/-250ppm
clock stability. The
recommended configuration for
NRF_CLOCK_LF_SRC_RC on nRF52 is
rc_ctiv=16 and rc_temp_ctiv=2. This
will ensure calibration at
least once every 8 seconds and for
temperature changes of 0.5
degrees Celsius every 4 seconds. See
the Product Specification
for the nRF52 device being used for
more information.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>