<?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>Use NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15716/use-nrf_clock_lfclksrc_rc_250_ppm_250ms_calibration</link><description>How could I rebuild the code for an NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION? 
 static void ble_stack_init(void)
{
 uint32_t err_code;
 
 nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
 
 // Initialize the SoftDevice handler module</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Jul 2020 10:45:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15716/use-nrf_clock_lfclksrc_rc_250_ppm_250ms_calibration" /><item><title>RE: Use NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION</title><link>https://devzone.nordicsemi.com/thread/260335?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 10:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4460a4b1-920c-438d-9a9d-71290665a5a4</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Hey,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where can I see the calibration frequency effect on current consumption?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION</title><link>https://devzone.nordicsemi.com/thread/59995?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 07:46:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b90cb25-9837-44c3-85a3-d09daa53d4e8</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you change this line:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// see nrf_sdm.h for more details
nrf_clock_lf_cfg_t clock_lf_cfg = 
{
    .source = NRF_CLOCK_LF_SRC_RC,
    .rc_ctiv = 16, // Interval in 0.25 s, 16 * 0.25 = 4 sec
    .rc_temp_ctiv = 2, // Check temperature every .rc_ctiv, but calibrate every .rc_temp_ctiv 
    .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM,
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This configuration will set RC oscillator, and check for temperature delta every 4 second, and calibrate the RC every 8 second.&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>