<?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>Frequency measurement accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38819/frequency-measurement-accuracy</link><description>Hello, 
 I would like to measure the frequency of a signal and I use PPI, a timer and input capture to achieve this. Here&amp;#39;s the configuration : 
 
 The frequency of my signal is stable but the return captured value varies a bit. 
 &amp;lt;info&amp;gt; app: 176 &amp;lt;info</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Sep 2018 06:23:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38819/frequency-measurement-accuracy" /><item><title>RE: Frequency measurement accuracy</title><link>https://devzone.nordicsemi.com/thread/150584?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 06:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eab97fd-a472-41cf-a4e0-7e07e7ace9c2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;And you are sure that the external HF clock is running all the time?&lt;/p&gt;
&lt;p&gt;I just tested this myself and I typically see the result vary between two values (198 and 199 in my case), which is to be expected. Since the external signal will not be synchronized to the clock of the nRF52, you can get slightly different results depending on what the phase of the nRF52 clock is when the external signal triggers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This doesn&amp;#39;t fully explain why you see variation&amp;nbsp;between 175, 176 and 177.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In either case I would suggest averaging the result over multiple pulses for more accurate results.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency measurement accuracy</title><link>https://devzone.nordicsemi.com/thread/150333?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 19:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77505463-f9dd-41df-aca4-6a4f5a69ce70</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No, the MCU never enters into sleep mode. My program is as simple as possible ...&lt;/p&gt;
&lt;p&gt;Sylvain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency measurement accuracy</title><link>https://devzone.nordicsemi.com/thread/150213?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 10:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54c3568d-7564-4924-8698-bcfaa051c226</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sylvain&lt;/p&gt;
&lt;p&gt;Do you put the MCU to sleep at any time?&lt;/p&gt;
&lt;p&gt;If so the PPI latency can increase and you might see less accurate results.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency measurement accuracy</title><link>https://devzone.nordicsemi.com/thread/150080?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 13:33:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcf46096-fe73-4449-a521-723665e095ed</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;I know that my signal is stable because I use a professional signal generator.&lt;br /&gt;&lt;br /&gt;Not precise enough for what I want to do. I perform the same measurement on a STM32 and the value is stable.&lt;br /&gt;&lt;br /&gt;I would like to understand and fix the variation of the nRF52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency measurement accuracy</title><link>https://devzone.nordicsemi.com/thread/150068?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 13:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77e471d2-c2f9-4389-925f-088dde889060</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;[quote userid="68596" url="~/f/nordic-q-a/38819/frequency-measurement-accuracy"][/quote]&lt;/p&gt;
&lt;p&gt;The frequency of my signal is stable&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How do you know that?&lt;/p&gt;
&lt;p&gt;Exactly how stable is it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="68596" url="~/f/nordic-q-a/38819/frequency-measurement-accuracy"]the return captured value varies a bit[/quote]
&lt;p&gt;only by +/- 1 in 176;&amp;nbsp; which is about 0.5% - which is pretty for any measurement!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>