<?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>RTC Setting of Nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22245/rtc-setting-of-nrf51822</link><description>Hi,
I&amp;#39;m using Nrf51822 to implement a RTC(200ms tick)
I connect a external 16MHz crystal to the MCU.
I use the S110 softdevice with BLE function enabled, so it&amp;#39;s in ble_stack_init() where to setup the crystal, right? 
 My question is which crystal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 May 2017 11:25:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22245/rtc-setting-of-nrf51822" /><item><title>RE: RTC Setting of Nrf51822</title><link>https://devzone.nordicsemi.com/thread/87405?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 11:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06db365-4a9f-4ada-a601-9ed47d4287e7</guid><dc:creator>BK</dc:creator><description>&lt;p&gt;Thanks Jorn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Setting of Nrf51822</title><link>https://devzone.nordicsemi.com/thread/87404?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 07:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e240d09a-6135-4cb6-bb53-ba55e5da34e4</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;That looks correct, yes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Setting of Nrf51822</title><link>https://devzone.nordicsemi.com/thread/87403?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 05:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2271a4c2-108d-4589-9f55-f3dfe5eaf81c</guid><dc:creator>BK</dc:creator><description>&lt;p&gt;Hi Jørn,
Sorry that I made a mistake, the MCU connect a 16MHz crystal at port XC1,XC2 and a 32.768KHz crystal at XL1,XL2 as well.
The tolerance of the crystal is as below. So in this case,  I need to set it as this:  SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);  is that correct?
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1778.Capture.JPG" alt="image description" /&gt;
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5810.Capture3.JPG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Setting of Nrf51822</title><link>https://devzone.nordicsemi.com/thread/87402?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 14:20:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38eab08-9b45-43a0-9e12-60a5c4e7c356</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello BK&lt;/p&gt;
&lt;p&gt;When the 32.768 kHz crystal is not present you can choose between two low frequency clock sources. Either the internal RC oscillator, or a synthesized low frequency clock created from the high frequency clock. Do note that the synthesized clock has a higher current consumption, and the high frequency clock must be running at all times.
You can read more about these choices &lt;a href="https://devzone.nordicsemi.com/question/953/what-low-frequency-clock-sources-can-i-use/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Setting of Nrf51822</title><link>https://devzone.nordicsemi.com/thread/87401?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 13:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c68969e-d46d-44e1-8d8b-bb30f5e2b3ba</guid><dc:creator>BK</dc:creator><description>&lt;p&gt;Hi, just the 16Mhz crystal.  As for the tolerance, I&amp;#39;m not pretty sure about it...which configuration do I need to set in ble_stack_init()  for my case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Setting of Nrf51822</title><link>https://devzone.nordicsemi.com/thread/87400?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 13:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cf5d9f2-3643-49de-85cb-7c54f0230a72</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Do you have a 32.768 kHz crystal as well, or just the 16 MHz crystal? And what tolerance do you have on your crystal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>