<?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>External Clocks</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35632/external-clocks</link><description>I&amp;#39;m using v14 of the SDK and I cannot for the life of me get either the external 32MHz or 32.768kHz clocks working. 
 How is this possible using the SDK?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jun 2018 13:15:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35632/external-clocks" /><item><title>RE: External Clocks</title><link>https://devzone.nordicsemi.com/thread/137104?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 13:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbc5ac8a-8c1d-4c76-b749-ced031bbf62a</guid><dc:creator>webzoid</dc:creator><description>&lt;p&gt;Ok, my understanding there then is that the 32MHz is probably working if the radio stack is active.&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Clocks</title><link>https://devzone.nordicsemi.com/thread/137102?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 13:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:058e8575-51f6-431b-b8ac-f5f72b025a9d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;If you scope XC1/XC2, you change the load (impedance), thus reduce the amplitude. A normal low-voltage swing on these pins is only a couple of hundred millivolts.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Clocks</title><link>https://devzone.nordicsemi.com/thread/137097?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 13:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48e29a5f-b872-4cce-a0b3-b1ede19b37be</guid><dc:creator>webzoid</dc:creator><description>&lt;p&gt;This is quite strange because I have had the SparkFun nRF52832 board running (using Arduino BLEPeripheral code) and when checking the 32M clock, there was barely any output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Clocks</title><link>https://devzone.nordicsemi.com/thread/137095?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 13:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25829979-621b-48c1-acc3-b06f178ecf2a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;32M crystal is required for the radio to work. This one you cannot get around if you want to use the radio.&lt;/p&gt;
&lt;p&gt;32k can be sourced from either an external 32k crystal, or using the internal 32k RC oscillator. Using the RC oscillator will give a penalty on power consumption (you need to calibrate regularly), but reduce BOM cost.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Clocks</title><link>https://devzone.nordicsemi.com/thread/137094?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 12:59:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c841741-e097-450a-a8d2-140654783287</guid><dc:creator>webzoid</dc:creator><description>&lt;p&gt;Thanks for your code sample. I will try this shortly.&lt;/p&gt;
&lt;p&gt;Is there any benefit in using the external 32MHz and 32.768kHz crystals over using the internal ones?&lt;/p&gt;
&lt;p&gt;Obviously a reduction in BOM component cost is very beneficial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Clocks</title><link>https://devzone.nordicsemi.com/thread/137076?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 11:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59669e58-bb9d-46a8-8cf7-000fe9e5c956</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Most examples uses the external LFCLK by default. The external HFCLK is started on-demand (automatically by the softdevice) for power consumption reasons.&lt;/p&gt;
&lt;p&gt;Use this code snippet to test your clock sources (add them to the blinky example for instance):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);
    
NRF_CLOCK-&amp;gt;LFCLKSRC = CLOCK_LFCLKSRC_SRC_Xtal &amp;lt;&amp;lt; CLOCK_LFCLKSRC_SRC_Pos;
NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
while (NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If your code hangs in one of the while-loops, then there&amp;#39;s an external problem with your clock source (loading caps incorrect, soldering issue, or similar)&lt;/p&gt;
&lt;p&gt;Note: if adding this to a SoftDevice example, be sure to run this _prior to the softdevice enable_&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>