<?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>nrf51822, custom board, crystal design</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11644/nrf51822-custom-board-crystal-design</link><description>I&amp;#39;ve been developing some ble code for a custom board. Recently, I just finished creating a new smaller board. When I load my code onto it, I notice that I have trouble discovering my device&amp;#39;s services and fail to connect most of the time. 
 After looking</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Feb 2016 01:57:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11644/nrf51822-custom-board-crystal-design" /><item><title>RE: nrf51822, custom board, crystal design</title><link>https://devzone.nordicsemi.com/thread/44002?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 01:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ce01f7a-9852-4ba6-a847-0119a74a97c3</guid><dc:creator>Beau R.</dc:creator><description>&lt;p&gt;Thank you. My board design is not too far from the reference designs. I do have a little less ground plane due to having some other sensors on board. I saw that my 16Mhz crystal seemed spot on which is comforting.&lt;/p&gt;
&lt;p&gt;Strangely enough, I was able to resolve this issue by disabling the internal DC/DC converter. One new addition from my last board is the fact that we have a switching regulator on board. Lesson learned, don&amp;#39;t enable the dc/dc mode if you are regulating your power.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822, custom board, crystal design</title><link>https://devzone.nordicsemi.com/thread/44001?ContentTypeID=1</link><pubDate>Sun, 31 Jan 2016 23:34:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7e9dff1-5f61-40e8-b3b0-e4d20c2b0937</guid><dc:creator>RK</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;yes you can use either internal RC (with periodic calibration) or synthesized LF from HF instead of the LF crystal. Last time I asked, the calibrated RC was the recommended one of those.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Capacitors seem right. The formula in the reference sheet is Cl = C1.C2/(C1+C2) where C1 and C2 are C + Cpin and Cpin is 4pF. Rearrange that and you get C = 2.Cl - Cpin. In your case Cl is 8pF and 9pF respectively so that would give you capacitances of 12pF and 14pF, which is just about what you have. Unless you have a lot of stray capacitance from the traces connecting them, you should be in the ballpark. How close to the reference layout did you stay?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You could test the frequency outputs of your crystals with a scope if you have one (i don&amp;#39;t) or by getting a timer running off HF or LF clock to toggle a GPIO pin in a simple &amp;#39;blinky&amp;#39; type app and use a logic analyser. That should tell you if you are way off.&lt;/p&gt;
&lt;p&gt;How about antenna? Crystals are tricky, antennas are beasts. If this is affecting you on either crystal source, I&amp;#39;d go take a look there too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>