<?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>GPIOTE timing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54041/gpiote-timing</link><description>I&amp;#39;d like to track pulses coming from external source. 
 Pulses maybe is variable length, some pulses may be treated as illegal ( if they are too short &amp;lt;10 ms ) for ex. 
 For GPIOTE ( or QDEC ) can I set &amp;quot;holding&amp;quot; time before interrupt is generated ? what</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Nov 2019 09:19:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54041/gpiote-timing" /><item><title>RE: GPIOTE timing</title><link>https://devzone.nordicsemi.com/thread/218752?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 09:19:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e6a970-0ebb-4326-9afc-81abfbbfe6e0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Ran,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What kind of pulses are you expecting? QDEC could be a solution, I would recommend looking at the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/qdec_example.html?cp=5_1_4_6_26"&gt;QDEC example&lt;/a&gt;&amp;nbsp;and the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/qdec.html?resultof=%22%71%64%65%63%22%20"&gt;QDEC documentation&lt;/a&gt;. Or have a look at the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrf_gpiote_example.html?cp=5_1_4_6_14"&gt;GPIOTE example&lt;/a&gt;&amp;nbsp;and the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpiote.html?resultof=%22%67%70%69%6f%74%65%22%20%22%67%70%69%6f%74%22%20"&gt;GPIOTE documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You could use a timer to trigger a compare interrupt every 10ms, which again triggers a callback in your code.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;There are also some earlier support tickets which cover a similar topic, have a look &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27132/reading-digital-waveform/106801#106801"&gt;here,&lt;/a&gt; &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34547/ppi-configuration-to-count-pulses"&gt;here&lt;/a&gt;&amp;nbsp;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50228/nrf52840---giving-userdefined-function-at-ppi-task-end"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>