<?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>Power Supply and Crystal Configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36384/power-supply-and-crystal-configuration</link><description>I am using the nRF51822. I am using the regulator (not the DC/DC) connection and am not using the low-power (1.2V) mode. All supplies are 3.3V. 
 Additionally, I am only using the 32MHz crystal and not a 32kHz crystal. I will use the internal RC oscillator</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jul 2018 13:35:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36384/power-supply-and-crystal-configuration" /><item><title>RE: Power Supply and Crystal Configuration</title><link>https://devzone.nordicsemi.com/thread/140223?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 13:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ee78e07-3936-4c05-b47a-6df64221a655</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No changes are needed for LDO (non-DC/DC) operation, this is done by default. For 32 kHz you need to modify&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/structnrf__clock__lf__cfg__t.html"&gt;nrf_clock_lf_cfg_t&lt;/a&gt;&amp;nbsp; used when&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___n_r_f___s_d_m___f_u_n_c_t_i_o_n_s.html#ga420235cbdf6b0746ce86af3cfd0ec055"&gt;&amp;nbsp;enabling the softdevice&lt;/a&gt;. E.g. for SDK 12.3&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

#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;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the 32 MHz&amp;nbsp; crystal you need to update the XTALFREQ register before the oscillator is started by the application, e.g.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Set the external high frequency clock source to 32 MHz
    NRF_CLOCK-&amp;gt;XTALFREQ = 0xFFFFFF00;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The other option is to change the reset value of NRF_CLOCK-&amp;gt;XTALFREQ to 32 MHz. Reset value is defined by NRF_UICR-&amp;gt;XTALFREQ&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>