<?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 rising and falling edge detection at the same time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66031/gpiote-rising-and-falling-edge-detection-at-the-same-time</link><description>Hi, 
 I&amp;#39;m writing a decoder for a custom radio protocol and I need to measure the rising and falling edges of a signal with high precision. I&amp;#39;m currently using the COMP peripheral since it can generate both UP and DOWN events that I use with PPI and a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 23 Jan 2022 09:47:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66031/gpiote-rising-and-falling-edge-detection-at-the-same-time" /><item><title>RE: GPIOTE rising and falling edge detection at the same time</title><link>https://devzone.nordicsemi.com/thread/349082?ContentTypeID=1</link><pubDate>Sun, 23 Jan 2022 09:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeec0131-721b-4797-ad05-2f0c000931ec</guid><dc:creator>Jimmie Johansson</dc:creator><description>&lt;p&gt;We re-designed the hardware and used the LPCOMP-module instead since the GPIOTE-function is not officially supported. We simply cannot risk edge-cases where it could fail. But the proof of concept was done directly with the nrfx-drivers (or direct register access, don&amp;#39;t remember fully). We simply se up two different gpiote channels on the same pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE rising and falling edge detection at the same time</title><link>https://devzone.nordicsemi.com/thread/349074?ContentTypeID=1</link><pubDate>Sun, 23 Jan 2022 04:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2328c20-f275-4d1d-9f7f-54521afe8499</guid><dc:creator>shna6159</dc:creator><description>&lt;p&gt;Hey Jimmie,&lt;/p&gt;
&lt;p&gt;I saw that you implemented GPIOTE rising and falling edge detection at the same time. I am trying to implement something similar. Is it possible for you to share your implementation of the same?&lt;/p&gt;
&lt;p&gt;Also, have you run into any sort of stability issues with this implementation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE rising and falling edge detection at the same time</title><link>https://devzone.nordicsemi.com/thread/270276?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 08:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1d96e4d-30ac-4444-96b9-adcb40a668f0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Jimmie&lt;/p&gt;
&lt;p&gt;Essentially this wasn&amp;#39;t identified as a requirement when the module was originally specified, and&amp;nbsp;no one has gone through the loops of qualifying this use case later on.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Still, connecting two peripherals to the same pin has been shown to work fine if both or one of them are inputs only, but if both are set up as outputs then you will obviously have issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A workaround if you can spare a GPIO is to connect your signal to two different GPIO&amp;#39;s at the same time, and assign one GPIOTE channel to each of them. Then you don&amp;#39;t have to &amp;#39;go against&amp;#39; the recommendation in the specification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Alternatively this would have to be tested so we can guarantee that connecting two channels to the same pin will work fine, which needs to be prioritized towards other tasks the test group is working on. I can open an internal ticket to see if we can do this work, but I can&amp;#39;t make any promises obviously.&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: GPIOTE rising and falling edge detection at the same time</title><link>https://devzone.nordicsemi.com/thread/270105?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 12:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b285979-6e4d-4918-be27-cb18fd90271f</guid><dc:creator>Jimmie Johansson</dc:creator><description>&lt;p&gt;Thank you for the answer, can you give some more information on&amp;nbsp;why it is not officially supported?&lt;/p&gt;
&lt;p&gt;We are writing code for receiving critical alarms, so we would need to know some more specifics if we are going to ship a product using a non-supported feature. I have also confirmed that is seems to work as well as the analog comparator (the reason why I want to use GPIOTE is that the hardware design can be simplified if we can select any GPIO and not just the analog pins).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE rising and falling edge detection at the same time</title><link>https://devzone.nordicsemi.com/thread/270100?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 12:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa0f3c68-15cf-4d86-b052-440551916739</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Jimmie&lt;/p&gt;
&lt;p&gt;While it isn&amp;#39;t officially supported I have yet to notice any issues when connecting two GPIOTE channels in input mode to the same pin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have used this feature on a couple of occasions in applications where a separate event for the rising and falling edge is required, and&amp;nbsp;it has worked fine during my testing at least.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So while I can&amp;#39;t guarantee that this will work fine in all occasions there are no known issues using the GPIOTE in this way.&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></channel></rss>