<?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>NRF52 Clock Issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21758/nrf52-clock-issue</link><description>Hi, 
 I have a board with a NRF52 (3rd party board), there is a 32MHz crystal with the correct load capacitors on, but the crystal is outputting 1MHz on a scope (Tektronix 100MHz), the code runs fine on the DK board, it has the 32KHz also on board, so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 May 2017 13:39:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21758/nrf52-clock-issue" /><item><title>RE: NRF52 Clock Issue</title><link>https://devzone.nordicsemi.com/thread/85447?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 13:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3327c49e-9c4d-40e9-a936-eb93fc362172</guid><dc:creator>AWUk</dc:creator><description>&lt;p&gt;Sorry, turns out it was a power supply issue!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Clock Issue</title><link>https://devzone.nordicsemi.com/thread/85446?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 09:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a30cd7-18c1-42ee-86a5-2ba127269bf6</guid><dc:creator>AWUk</dc:creator><description>&lt;p&gt;Hi Turbo J,
Thanks for the reply, i&amp;#39;ll certainly try what you have suggested!
The board programs, and verifies, but no current draw or no activity, and when I measured the clock I found 1MHz so figured that&amp;#39;s what it was!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Clock Issue</title><link>https://devzone.nordicsemi.com/thread/85445?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 08:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7af77bf2-9644-48b5-81dc-a21af8b55715</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Try using the &lt;code&gt;sd_clock_hfclk_request ();&lt;/code&gt; call to enable the crystal oscillator. You may need to eliminate the &lt;code&gt;power_manage();&lt;/code&gt; call from the main loop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Clock Issue</title><link>https://devzone.nordicsemi.com/thread/85444?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 07:56:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ac047e-5672-4ee8-8bab-935d74bebdd9</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The ble beacon app uses the &lt;code&gt;power_manage();&lt;/code&gt; call to &lt;strong&gt;disable&lt;/strong&gt; the crystal and HFCLK most of the time. It is only enabled for &lt;em&gt;very short&lt;/em&gt; bursts when transmitting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Clock Issue</title><link>https://devzone.nordicsemi.com/thread/85443?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 21:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6682989c-ade4-41cc-9770-71bc2ea34650</guid><dc:creator>AWUk</dc:creator><description>&lt;p&gt;Hi,
Well, the scope is in clock measurement mode, when I measure another circuit using the same scope setup, a PIC16 running @ 32MHz, with a similar crystal, same make, different package, I get a 32MHz burst on the screen, which accurately measures the 32MHz, the circuit should be an almost copy of the eval kit board, minus the NFC.  The software is the same and works on the dev board.  That is the confusing part!  The scope will show at least up to 50MHz accurately as I was scoping an Ethernet ref clock not to long ago with it.  I would accept that the probe is adding a bit of capacitance thus throwing the load out if the measurement was close, but it&amp;#39;s way off, i&amp;#39;m using the example BLE beacon with SD 132, the current draw on the PSU is showing as 0 as though it isn&amp;#39;t running at all (at 1MHz it wouldn&amp;#39;t be!)&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Clock Issue</title><link>https://devzone.nordicsemi.com/thread/85442?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 19:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05d3ecb7-dc90-46f1-b1b1-688b0a2ad2fa</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;You are just looking at the alias of the signal.  It&amp;#39;s a  nyquist theorem thing.
Just turn the sample rate up (ie, horizontal scale to a minimum) to see the real signal.  On your scope the minimum will be about 10nsec/div.&lt;/p&gt;
&lt;p&gt;Normally, you will see a fairly square wave looking thing, but since your scope has only a 100MHz front end it will likely look like a distorted sine wave.  The reason is all the harmonics that make it square are way beyond the capabilities of your scope so they will either be lost or alias back in band.&lt;/p&gt;
&lt;p&gt;Also, the parasitic capacitance of the scope probes might pull the crystal a bit.  So it may be a little outside of its ppm accuracy.  A better approach is to use the ppi to buffer the clock and route it out gpio.&lt;/p&gt;
&lt;p&gt;And remember the 32MHz has to be running.  The SD always turns it on but normally your code will be executed with HFINT main clock for power savings.  You actually have to request the 32MHz to be on in your code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>