<?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 Calibrate Timer？</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25113/how-to-calibrate-timer</link><description>I use NRF52832 and sdk13.0.0 to develop my own application. I want to generate 1000 Hz Timer to trigger the ADC. I use the timer 1 to generate 1000 Hz. But when I use GPIOTE to test the frequency, I find that the frequency is 500.014 Hz(500.014 x 2 =</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Sep 2017 01:52:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25113/how-to-calibrate-timer" /><item><title>RE: How to Calibrate Timer？</title><link>https://devzone.nordicsemi.com/thread/98902?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 01:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b1180d7-6d60-4672-b809-d4ece0b963fa</guid><dc:creator>MDSC</dc:creator><description>&lt;p&gt;Thank you for your answer. I will try your methods.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Calibrate Timer？</title><link>https://devzone.nordicsemi.com/thread/98900?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 15:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:185a5ea3-4863-484c-bc10-de122b1bd2d9</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I think I just answered your comment with the above.
Look to the accuracy of your test equipment for your answer.&lt;/p&gt;
&lt;p&gt;When you are done with that and get to tuning your xtal, keep in mind that the 12pF or whatever in the reference design is just Nordic&amp;#39;s guidance.  Your tuning will be different based on your board artwork.  Values from 8pF to 12pF are equally possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Calibrate Timer？</title><link>https://devzone.nordicsemi.com/thread/98899?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 15:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2d20590-3a04-46fb-a10b-b83fa226c3dc</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;By the way I should point out that you need to consider the accuracy of the equipment you are using to measure the 1000Hz signal.  Most O-scopes have terrible clocks and 100ppm is not unheard of.  Whereas my Spectrum Analyzer has a 2.5ppm clock since that is what I use most.&lt;/p&gt;
&lt;p&gt;Test labs often use a GPS based 10 or 13MHz reference.  These have an accuracy of 0.00001 PPM.
Yes that is a 1 with 4 zeros in front of it.  Very, very accurate.&lt;/p&gt;
&lt;p&gt;I think what you&amp;#39;ll find is that between your nominal 32MHz offset and your test equipment everything is pretty normal.  Likely you just have to measure each board and adjust the register settings to get them close to each other.&lt;/p&gt;
&lt;p&gt;Also you might want to come up with load caps for the xtal that are better suited to your board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Calibrate Timer？</title><link>https://devzone.nordicsemi.com/thread/98898?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 14:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5a310fb-e1fb-472f-965d-ea76a5cde182</guid><dc:creator>MDSC</dc:creator><description>&lt;p&gt;Yes, I using 10 ppm 32mHz crystals. I will try the way of routing PClk to GPIO and check the 32MHz crystals. But how can I route PClk to GPIO, I don&amp;#39;t find the way? I read the GPIO register,but not find the way. Do you think the offset of 1000 +/- 0.026 Hz is normal ? Because the two user board almostly have the same  offset. Maybe the 32mHz is not accuracy or the 12pF capacitance is not accuracy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Calibrate Timer？</title><link>https://devzone.nordicsemi.com/thread/98897?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 14:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c7c9f0b-4125-4955-98ef-1f7293164f68</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I would suggest next you verify the accuracy of your 32MHz crystals.  You can&amp;#39;t probe directly since the probe capacitance will load the crystal.
Easiest way is to measure the RF channel accuracy with a spectrum analyzer.  Or you can route PClk to GPIO and measure that.  Pclk is 16MHz for nRF52 series.&lt;/p&gt;
&lt;p&gt;Some of the reference designs spec 10ppm crystals with 10ppm stability.  So at room temp you should see up to 10ppm error if loaded correctly.  Functionally you can view this as 1000Hz +/- 0.010Hz&lt;/p&gt;
&lt;p&gt;What is the ppm spec for the crystals you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Calibrate Timer？</title><link>https://devzone.nordicsemi.com/thread/98901?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 14:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:973d8ea7-73ce-402e-a9a9-1e347e79a1d0</guid><dc:creator>MDSC</dc:creator><description>&lt;p&gt;Hello, thank you for your anwser. I use sd_clock_hfclk_request() function to request the HFEXT, and using the oscilloscope to ensure the HFEXT running. When using the HFINT the frequency is unstable, than the frequency is stable but having offset after calling the sd_clock_hfclk_request() function. So I can ensure the HFEXT is running, but the frequency still have offset. So I want to know how to fix this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Calibrate Timer？</title><link>https://devzone.nordicsemi.com/thread/98896?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 12:30:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e2ea8dd-cc03-4995-b64a-dd5b094e0e65</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;There is no need nor capability for calibrating the nRF timer driver.
The only reason for the frequency to be off is either your 32MHz clock is incorrectly loaded or you failed to request HFEXT or essentially turn on HFEXT and instead it is running on HFINT which is not an accurate clock source.
You always need to request HFEXT in your code if you require its accuracy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>