<?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>How to implement interrupt using GPIO (not GPIOTE) peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47973/how-to-implement-interrupt-using-gpio-not-gpiote-peripheral</link><description>Hi all, 
 I am trying to create a very simple program with GPIO peripheral (not GPIOTE) that toggles the state of an output pin through an interrupt handler, when an input pin is toggled (i.e button). 
 I have already seen the pin_change_int example that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jun 2019 06:31:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47973/how-to-implement-interrupt-using-gpio-not-gpiote-peripheral" /><item><title>RE: How to implement interrupt using GPIO (not GPIOTE) peripheral</title><link>https://devzone.nordicsemi.com/thread/190656?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 06:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7853b89-3ab2-4a7a-8808-3c193b9f9ef5</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Thank you for your help Sir. I think I got it. Both answers are equally good&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement interrupt using GPIO (not GPIOTE) peripheral</title><link>https://devzone.nordicsemi.com/thread/190504?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 12:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bae63bf-b8b9-4914-8910-88dfe6d62ce1</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To get an interrupt for any pin with sense enabled you should use the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpiote.html?cp=3_0_0_5_9_1#concept_jyp_21x_lr"&gt;Port event&lt;/a&gt; in the GPIOTE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While this still requires the GPIOTE interrupt vector to be used, you don&amp;#39;t have to dedicate a separate GPIOTE channel to each pin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The catch is that you need to check the state of the pins in the interrupt vector, which is described in the port event section I linked to above.&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: How to implement interrupt using GPIO (not GPIOTE) peripheral</title><link>https://devzone.nordicsemi.com/thread/190104?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 19:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab3fc006-7294-46e5-be81-56b385839519</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi, Thank you for the reply. Indeed it helps a lot but this is for gpiote peripheral not gpio. &lt;/p&gt;
&lt;p&gt;I notice that most of the questions regarding basic implementation of interrupts refer to the pin_change_int where the gpiote is used but not tte gpio peripheral&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would like to learn if I can do the same thing with GPIO peripheral and how it is done and if not why..&lt;/p&gt;
&lt;p&gt;I suspect that it can be done with detect signal and sense mechanism of the GPIO but I cannot understand how to combine an interrupt with that mechanism (if this is the way it can be done)&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement interrupt using GPIO (not GPIOTE) peripheral</title><link>https://devzone.nordicsemi.com/thread/190098?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 17:32:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a15af1a1-d74c-41eb-962e-7c0d6d7052cd</guid><dc:creator>Sunil519</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think this link might help you:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35945/nrf_drv_gpiote_in_event_enable"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/35945/nrf_drv_gpiote_in_event_enable&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>