<?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>A few questions about getting started with crystals.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29489/a-few-questions-about-getting-started-with-crystals</link><description>Hi to everyone! 
 It&amp;#39;s the first time I use and program clocks in a device. I&amp;#39;m very lost with crystals, power management and this stuff. 
 I have a custom board with two crystals: one is high frecuency and the other is external low frecuency. 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jan 2018 07:22:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29489/a-few-questions-about-getting-started-with-crystals" /><item><title>RE: A few questions about getting started with crystals.</title><link>https://devzone.nordicsemi.com/thread/117223?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2018 07:22:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4489963d-c89e-4991-b588-7e09033b84c8</guid><dc:creator>run_ar</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;If you are using an external crystal you need to change the NRF_SDH_CLOCK_LF_XTAL_ACCURACY in sdk_config.h. to switch between external and rc change NRF_SDH_CLOCK_LF_SRC&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the Softdevice is enabled it will turn the HF xtal on/off, so it is only enabled when it is needed for radio communication.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A few questions about getting started with crystals.</title><link>https://devzone.nordicsemi.com/thread/117222?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 20:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c700311-b084-4cac-a391-f77b9552fe85</guid><dc:creator>nemunoz</dc:creator><description>&lt;p&gt;Thank you, run_ar!&lt;/p&gt;
&lt;p&gt;I guess I have to switch the crystal settings every time I change the test board.&lt;/p&gt;
&lt;p&gt;Sorry, but I have a few more questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Is the code (which is in the three post I put before) enough to use with crystals (to program and change between them)?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In your last sentence: &amp;quot;Note that the Softdevice will turn this on/off when need be&amp;quot;. Does it means I don&amp;#39;t have to care to turn off the High Frequency crystal? And, when SoftDevice is used, SoftDevice will turn it on?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A few questions about getting started with crystals.</title><link>https://devzone.nordicsemi.com/thread/117221?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 12:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2bcdf9f-e164-4861-8dd4-72a75f137416</guid><dc:creator>run_ar</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Yes, you can. but you have to change the settings to match the board you are using. i.e. if the DK has a 20ppm 32KHz crystal and the custom board has a 40ppm, this needs to be changed.&lt;/li&gt;
&lt;li&gt;Use the Higher setting. this is used to determine how early it rx window should start to account for drift. You can use the typical setting if your board will only operate in the typical scenario, if not use the higher setting.&lt;/li&gt;
&lt;li&gt;The internal RC requires less external compononents at the cost of increase inaccuracy, so the power consumption will be slightly higer due to a larger listening window and calibration at regular intervals using the HF clock. The external crystal is usually more accurat and does not require calibration. So if you need the lowest power consumption possible you use a crystal, but if cost is more important you can use the internal RC. For the High Frequency clock and external crystal is required for the radio. Note that the Softdevice will turn this on/off when need be.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>