<?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>How to measure nRF52832 32Mhz Crystal frequency by counter ??</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44016/how-to-measure-nrf52832-32mhz-crystal-frequency-by-counter</link><description>Sorry for disturbing! 
 I have some questions about measuring nRF52832 32Mhz Crystal frequency. 
 I use an active probe(Tektronix P6243) to catch the signal and the test result is below. 
 Question1. Do we need to key any code for Crystal oscillates stably</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Feb 2019 08:55:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44016/how-to-measure-nrf52832-32mhz-crystal-frequency-by-counter" /><item><title>RE: How to measure nRF52832 32Mhz Crystal frequency by counter ??</title><link>https://devzone.nordicsemi.com/thread/172696?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 08:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbb8fc8f-9676-48ed-a1a4-6f5737468032</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;If your firmware is running a bluetooth example using the SoftDevice, then this is normal. For power consumption reasons, the external HFCLK is only started when it is needed by the radio.&lt;/p&gt;
&lt;p&gt;If you have access to a spectrum analyzer, you can check the crystal accuracy by outputting a unmodulated signal at a given frequency (let&amp;#39;s say 2.440 GHz), then see how much the RF signal deviates from this expected frequency.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure nRF52832 32Mhz Crystal frequency by counter ??</title><link>https://devzone.nordicsemi.com/thread/172667?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 03:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d831c290-d801-49d0-b020-1ebf8bf5f427</guid><dc:creator>jasonchiang</dc:creator><description>&lt;p&gt;About Question2&lt;/p&gt;
&lt;p&gt;I zoom out the horizontal scale on my oscilloscope&lt;/p&gt;
&lt;p&gt;It looks like crystal oscillates for a period of time then stops oscillating&amp;nbsp; and oscillates again.(repeat and repeat)&lt;/p&gt;
&lt;p&gt;Is this situation normal or can it be always oscillating ?(sorry i don&amp;#39;t know about 32M crystal operation of this chip)&lt;/p&gt;
&lt;p&gt;I try to confirm if 32M crystal accurate or not. Do you have any suggestion about measuring 32M crystal frequency??&lt;/p&gt;
&lt;p&gt;Thank&amp;nbsp;you for your reply&amp;nbsp;!!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6866.1.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1423.2.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure nRF52832 32Mhz Crystal frequency by counter ??</title><link>https://devzone.nordicsemi.com/thread/172495?ContentTypeID=1</link><pubDate>Fri, 22 Feb 2019 12:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960fcf45-d211-4399-88b3-ca679897e249</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;&amp;nbsp;&lt;/p&gt;
[quote user=""]Question1.&amp;nbsp;Do we need to key any code for Crystal oscillates stably??[/quote]
&lt;p&gt;The crystal is stable after the EVENTS_HFCLKSTARTED event is set.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example in C:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
nrf_gpio_pin_set(TEST_GPIO);
while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);
nrf_gpio_pin_clear(TEST_GPIO);
NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]Question2. Why the front end of waveform has some&amp;nbsp;&lt;span&gt;distortion??&amp;nbsp;&lt;/span&gt;&amp;nbsp;Is this correct?&amp;nbsp;[/quote]
&lt;p&gt;Are you thinking of the amplitude change after stabilizing or the &amp;quot;noise&amp;quot; in the actual sinus, ie: picture nr. 2?&lt;/p&gt;
&lt;p&gt;The amplitude change is due to the stabilisation, while the noise on the zoomed in sinus is likely picked up by noise from the probe or the grounding. Does not look that bad.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]Question3. How to measure crystal by a counter&amp;nbsp;(Agilent 53210A) ?? When I use the probe to measure crystal output pin, the value shows unstable on the&amp;nbsp;counter. Does this situation related to the front end of waveform??[/quote]
&lt;p&gt;You&amp;#39;ll have to contact the supplier of this instrument in order to set it up to count clocks on a crystal. I do not have any experience with this specific frequency counter.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>