<?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>Parallel time-stamps of GPIO edges with PPI? (timer capture)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27134/parallel-time-stamps-of-gpio-edges-with-ppi-timer-capture</link><description>Hi, all! 
 Is it really possible to timestamp 4 GPIO edges in parallel with the nRF52? 
 It would need to be as fast as possible and some edges might be simultaneous so PPI seems to be the trick. 
 The documentations ( PPI , GPIOTE , GPIO , TIMER </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Nov 2017 15:04:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27134/parallel-time-stamps-of-gpio-edges-with-ppi-timer-capture" /><item><title>RE: Parallel time-stamps of GPIO edges with PPI? (timer capture)</title><link>https://devzone.nordicsemi.com/thread/106813?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 15:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d503046-d80e-4610-aa77-b7829e905848</guid><dc:creator>Cedric Honnet</dc:creator><description>&lt;p&gt;Great!
Little note: that&amp;#39;s probably a kind of typo but the &amp;quot;Counter register is incremented by one each time the COUNT task is triggered&amp;quot;:
&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52810.ps%2Ftimer.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;
So the most appropriate to time-stamp the GPIO edges is probably the timer mode ;)
Thanks a lot for your answer!!&lt;/p&gt;
&lt;p&gt;PS: In our case we need to time-stamp 4 rising edges + 4 falling edges, so the trick is to use 2 timers as there are not enough otherwise ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parallel time-stamps of GPIO edges with PPI? (timer capture)</title><link>https://devzone.nordicsemi.com/thread/106812?ContentTypeID=1</link><pubDate>Wed, 23 Aug 2017 00:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b8498d2-93d3-4c81-a002-0a09dfd79d88</guid><dc:creator>Alexis</dc:creator><description>&lt;p&gt;You can easily do that :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Configure your GPIO to generate events on each rising (or falling or toggle) edge through register CONFIG[n]. You can have up to 8 pins generating events on nRF52840.&lt;/li&gt;
&lt;li&gt;Configure the timer in counter mode and start it.&lt;/li&gt;
&lt;li&gt;Through PPI connect each pin event to a capture channel task of your timer. You have 6 capture register on nRF52840.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then every time a pin receive the correct edge, the capture register connected to it will latch the current timer value. All this events can happen at the same time or not, it doesn&amp;#39;t matter.&lt;/p&gt;
&lt;p&gt;Good luck :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>