<?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>How to config NRF51822 custom board Xtal Freq to 32MHz using nrf51dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30533/how-to-config-nrf51822-custom-board-xtal-freq-to-32mhz-using-nrf51dk</link><description>Hi, I&amp;#39;m trying to program my custom board which has external 32MHz Xtal oscillator using nRF51 DK. 
 I have connected the custom board and the DK well and by using nrfgo I could succesfully upload the code to the custom board. 
 I uploaded the SDK12.3</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 18 Feb 2018 04:26:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30533/how-to-config-nrf51822-custom-board-xtal-freq-to-32mhz-using-nrf51dk" /><item><title>RE: How to config NRF51822 custom board Xtal Freq to 32MHz using nrf51dk</title><link>https://devzone.nordicsemi.com/thread/121168?ContentTypeID=1</link><pubDate>Sun, 18 Feb 2018 04:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f83334b3-a2ca-47a1-9fc7-401a93e93366</guid><dc:creator>Jake Jung</dc:creator><description>&lt;p&gt;Thang you Berg, It worked. I was keep writing the NRF -&amp;gt; XTALFREQ code before the main loop. It worked well after I put the code inside the main loop.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config NRF51822 custom board Xtal Freq to 32MHz using nrf51dk</title><link>https://devzone.nordicsemi.com/thread/121051?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 09:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0f2beac-079f-4949-ab56-630c00b80106</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is not important when you update the frequency setting as long as it done before the crystal is started by the app. You can update the register in main so that you don&amp;#39;t have to modify the startup files:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
    // Set the external high frequency clock source to 32 MHz
    NRF_CLOCK-&amp;gt;XTALFREQ = 0xFFFFFF00;&lt;/code&gt;&lt;br /&gt; ...&lt;br /&gt;}&lt;br /&gt;&lt;br /&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&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>