<?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>PPI time stamp accuracy problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34624/ppi-time-stamp-accuracy-problem</link><description>Hi all! 
 I&amp;#39;ve been working on a firmware to timestamp GPIO events using PPI in nRF52, and it works: 
 github.com/HiveTracker/firmware (more context: hivetracker.github.io ) 
 So first off, thanks for those who participate in this great forum, it helped</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Jun 2018 15:49:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34624/ppi-time-stamp-accuracy-problem" /><item><title>RE: PPI time stamp accuracy problem</title><link>https://devzone.nordicsemi.com/thread/134991?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 15:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b89d720a-bde0-4098-a7c3-efa352de30e8</guid><dc:creator>Cedric Honnet</dc:creator><description>&lt;p&gt;Alright, hanks for the link anyway ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI time stamp accuracy problem</title><link>https://devzone.nordicsemi.com/thread/134887?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 10:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8595da9b-e736-4bcf-8f40-8979a86fad9a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I normally should have taken some snapshots, Not in a habit of saving all my desk test setups in a repository.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But the setup looks more like the code in this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/13430/nrf52-1-4-mhz-clock-needed/51269#51269"&gt;thread&lt;/a&gt;. I instead used TIMER-&amp;gt;CC to be 1 instead of 2.&lt;/p&gt;
&lt;p&gt;In any case, the difference should not be as big as you see in your tests. That is more than 300 PPI sample clock ticks, which cannot be true for any of our systems that depend on PPI to work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI time stamp accuracy problem</title><link>https://devzone.nordicsemi.com/thread/134765?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 13:51:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf8c213b-2bcd-43d4-9f6d-cb3121067b98</guid><dc:creator>Cedric Honnet</dc:creator><description>&lt;div&gt;Hi,&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thanks a lot for your help!&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Could you share the link of your repository?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;It looks like&amp;nbsp;our configurations&amp;nbsp;are different: GPIOTE -&amp;gt; PPI -&amp;gt; TIMER&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;(The idea is to trigger timer captures to measure GPIO pulse&amp;nbsp;widths)&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thanks again !!&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI time stamp accuracy problem</title><link>https://devzone.nordicsemi.com/thread/134760?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 13:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8debeda-7771-4af6-af64-7e3ccc20669b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;sorry for the late reply, I have done some basic tests to check time delays between events from PPI -&amp;gt; TIMER-&amp;gt;GPIOTE and still see a maximum of 1 tick error from the event source to the toggle. I believe in your setup you are exercising more peripherals? I cannot test your code as I do not have that photodiode to test with. 21 us see way off from what it needs to be.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI time stamp accuracy problem</title><link>https://devzone.nordicsemi.com/thread/133205?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 11:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6243f82f-6d13-436d-aa84-bcb01828cb7d</guid><dc:creator>Cedric Honnet</dc:creator><description>&lt;p&gt;Hi Aryan!&lt;/p&gt;
&lt;p&gt;Thanks a lot for your answer!&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll find below another example with a&amp;nbsp;54 us error (= 3294 us - 3240&amp;nbsp;us), and the code is attached.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2018_2D00_05_2D00_24-13_2D00_03_2D00_56.png" /&gt;&lt;/p&gt;
&lt;p&gt;Hardware: this test was done with a &lt;a href="https://www.triadsemi.com/product/ts4231/"&gt;TS4231&lt;/a&gt;&amp;nbsp;photodiode, and signals generated by HTC vive base stations.&lt;/p&gt;
&lt;p&gt;Software: the&amp;nbsp;tool chain used is on&amp;nbsp;&lt;a href="http://github.com/sandeepmistry/arduino-nRF5"&gt;github&lt;/a&gt;, but it should not be very different to what you use.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If needed, there&amp;#39;s also a signal_generator folder to simulate fairly similar&amp;nbsp;pulses.&lt;/p&gt;
&lt;p&gt;Thanks again!!&lt;/p&gt;
&lt;p&gt;Cedric :)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6355.PPI.zip"&gt;devzone.nordicsemi.com/.../6355.PPI.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI time stamp accuracy problem</title><link>https://devzone.nordicsemi.com/thread/132864?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 06:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40fbf571-3e98-4484-b86f-cc30441d757d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Very interesting. Can you please attach a minimalistic project to reproduce this. I cannot access the github page.&lt;/p&gt;
&lt;p&gt;Maybe you are doing some casting conversions to be able to print that value onto serial port and loosing some accuracy in the conversion?? This seems like a long shot, I would like to reproduce this and see.&lt;/p&gt;
&lt;p&gt;My other theory is that it is possible that the chain of peripherals this event goes through by the time it gets latched in the timer capture register might be long and takes more than one PPI cycle to reach there.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>