<?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>nRF52840 SDK16 - Configure and create an Interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65036/nrf52840-sdk16---configure-and-create-an-interrupt</link><description>Hi everyone, 
 I suppose that this is a simple question but I cannot figure out what I am doing wrong. I am trying to set up an interrupt for a GPIO 
 I call the createInterrupt() function on the main() to configure, initialize and enable the interrupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Aug 2020 13:35:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65036/nrf52840-sdk16---configure-and-create-an-interrupt" /><item><title>RE: nRF52840 SDK16 - Configure and create an Interrupt</title><link>https://devzone.nordicsemi.com/thread/265572?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 13:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad35ef85-db07-4e86-931a-08ab12d6d964</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I have defined WC_CHG like this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define WC_CHG 46     // na - Monitor WPT (Wireless Power Transfer) - 0: wireless charging ON , 1: wireless charging OFF&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Ok, using a different GPIO it works fine.. Maybe this a hardware failure or I &amp;#39;ve damaged the GPIO.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 - Configure and create an Interrupt</title><link>https://devzone.nordicsemi.com/thread/265568?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 13:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d9ec05c-0b1a-40d4-85bb-f932324b9498</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Nick,&lt;/p&gt;
&lt;p&gt;I do not see any problems with your code. And you are right, you should measure the VDD voltage on the input pin after enabling the pull-up if it is unconnected. You do not write how you have defined&amp;nbsp;WC_CHG, other than that it is&amp;nbsp;P1.14, so I want to mention that you should define it like this to make sure you get it mapped correctly (to 32+14=46).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define WC_CHG NRF_GPIO_PIN_MAP(1,14)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Does that work?&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>