<?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 manual clear</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15416/gpiote-manual-clear</link><description>Hello, 
 I am working with the GPIOTE library to get a GPIOTE_IRQ from a peripheral. 
 I have several questions regarding the library and how IRQ works. 
 1.How do I clear the event for the gpiote input. I know that void GPIOTE_IRQHandler(void) 
does</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Aug 2016 11:35:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15416/gpiote-manual-clear" /><item><title>RE: GPIOTE manual clear</title><link>https://devzone.nordicsemi.com/thread/58842?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 11:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:883306f4-1e49-42ff-9bb8-760f88df5f34</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;Yes, if you for example only clear the interrupt flag at the end of the interrupt handler, any recurring happens before will not be caught.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE manual clear</title><link>https://devzone.nordicsemi.com/thread/58843?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 10:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a6f306-78b5-4fad-bcb0-6b8df68166f1</guid><dc:creator>Jong yoon lee</dc:creator><description>&lt;p&gt;@Hung Bui Ok that makes total sense :)
So if I clear a new gpiote interrupt while I am in the gpiote interrupt handler, I will be able to clear the interrupt and prevent the gpiote interrupt to be called once more because it has the same priority, right?!
Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE manual clear</title><link>https://devzone.nordicsemi.com/thread/58844?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 09:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7539292-e0f3-4cd9-935f-5a9b42d86ae6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@JohnLee: It&amp;#39;s not easy to clear an interrupt before the interrupt handle is executed.&lt;/p&gt;
&lt;p&gt;You can only do that if you are in an another interrupt handler with same or higher priority.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s the case then the interrupt that has been cleared will not be able to trigger the IRQHandler().&lt;/p&gt;
&lt;p&gt;If you are in the context with lower priority , for example in the main loop, then the IRQHandler() will preempt the normal routine and you can&amp;#39;t clear the flag before IRQHandler() executed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE manual clear</title><link>https://devzone.nordicsemi.com/thread/58845?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 03:48:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bbbaee7-8aaa-4ce6-84b1-8ca38309beae</guid><dc:creator>Jong yoon lee</dc:creator><description>&lt;p&gt;Thank you for the solution.
Do you any information about the second question I asked?
Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE manual clear</title><link>https://devzone.nordicsemi.com/thread/58841?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 09:56:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f06b65e-31db-4715-952f-53dde6ad1be9</guid><dc:creator>Martijn</dc:creator><description>&lt;p&gt;you can clear NRF_GPIOTE-&amp;gt;EVENT_PORT or NRF_GPIOTE-&amp;gt;EVENTS_IN[x] manually by writing 0 to them.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_GPIOTE-&amp;gt;EVENT_PORT = 0;
NRF_GPIOTE-&amp;gt;EVENTS_IN[0] = 0;
NRF_GPIOTE-&amp;gt;EVENTS_IN[1] = 0;
NRF_GPIOTE-&amp;gt;EVENTS_IN[2] = 0;
NRF_GPIOTE-&amp;gt;EVENTS_IN[3] = 0;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>