<?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>nRF9160 GPIO consume higher current when configure as input</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50987/nrf9160-gpio-consume-higher-current-when-configure-as-input</link><description>Hi, 
 
 I am using ncs V1.0.0 
 When I configure P0.5 as input it takes 37uA current. (Interface with PCA63548 / LIS2DH Interrupt) 
 If I not configure the pin as input getting desired current around 7uA. 
 GPIOTE config as input with below configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Dec 2019 17:18:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50987/nrf9160-gpio-consume-higher-current-when-configure-as-input" /><item><title>RE: nRF9160 GPIO consume higher current when configure as input</title><link>https://devzone.nordicsemi.com/thread/224543?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 17:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e56ccecc-91fd-4c5d-a2f3-4302252268d3</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;For anyone encountering the same situation I ended up disabling the interrupt callback while servicing the interrupt. I believe that in LEVEL mode the interrupt will be fired constantly while the line is held.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 GPIO consume higher current when configure as input</title><link>https://devzone.nordicsemi.com/thread/222870?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 18:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9d70f16-a85a-473a-a11f-bcc2641a52d3</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt; When I configure the button in this mode my current drops as expected, however now I have 3mA of current while the button is held. Is this expected or am I doing something wrong? In edge mode the increase while holding the button was 50uA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 GPIO consume higher current when configure as input</title><link>https://devzone.nordicsemi.com/thread/205434?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 06:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d09f6118-1ba2-4dcf-8f97-0bf2c389398e</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks using &amp;quot;&lt;span&gt;GPIO_INT_LEVEL&amp;quot; reduced the current.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Nirav Patel&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 GPIO consume higher current when configure as input</title><link>https://devzone.nordicsemi.com/thread/204827?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 14:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09bad2bd-ea39-48a2-b912-c0a2db10fedf</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/gpiote.html?cp=2_0_0_5_4"&gt;GPIOTE peripheral&lt;/a&gt; can either use the IN event or the PORT event(sense mechanism) to trigger an interrupt.&amp;nbsp;&lt;/span&gt;When you set the flag&amp;nbsp;GPIO_INT_EDGE, the &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/8f1780f6dee29dc2b2db01744e328a1a4a20d0b8/drivers/gpio/gpio_nrfx.c#L103"&gt;zephyr gpio driver will use a GPIOTE IN channel&lt;/a&gt;(IN EVENT) for the pin, this&amp;nbsp;will consume some additional current (10 -&amp;nbsp;20 uA range).&lt;/p&gt;
&lt;p&gt;The low-power option is to use PORT event instead. Looking at the zephyr driver, you then need to set&amp;nbsp;&lt;span&gt;GPIO_INT_LEVEL. You can read about the&amp;nbsp;Pin sense mechanism &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/gpio.html?cp=2_0_0_5_3_1#unique_962565950"&gt;here&lt;/a&gt;. Note that&amp;nbsp;PORT DETECT signal is&amp;nbsp;shared by multiple pins, so if you are using multiple input pins that changes level at about the same time, and at a high frequency, it might be better to use IN event.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>