<?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>GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110773/gpio-input-pin-leaking-current</link><description>Hello, 
 I have a GPIO button pin that is leaking current, By assumption would be that the internal pull down is set, however it is not. Anything I can look into? 
 
 
 
 schematic below:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 May 2024 12:37:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110773/gpio-input-pin-leaking-current" /><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481795?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 12:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1793562-7c37-4217-b724-d9ab6e77ffd3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It&amp;#39;s strange that using GPIOTE in events mode seems to be causing the average current to increase to 200 &amp;micro;A. I don&amp;rsquo;t recall seeing this before. Have you tried the Zephyr button sample to see if it has the same problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481783?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 12:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce25ea11-843e-4650-8f21-5ee46f9e72d9</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;Same hardware -&amp;nbsp;&lt;br /&gt;&lt;br /&gt;With GPIO interrupt enabled without&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;quot;sense-edge-mask&amp;quot; my average is 200uA. with it is 17-19uA. Confirmed on multiple boards.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481780?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 12:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2dc16e4-98a0-4f01-8986-6ac0728858d5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I&amp;#39;m a bit confused. Which configuration are you using when you get an average current of ~200 uA?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481779?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 12:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016b41f5-f602-430e-9690-149769ac9800</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;Full system is at 17-19uA total, with 2 GPIO interrupts with edge detection, BLE MESH LPN, and NFC enabled.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481778?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 12:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7702e8d-e795-48be-a7dc-ac5b8d9efe8d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That makes sense. With the &amp;#39;sense-edge-mask&amp;#39;, the input will also use PORT events for edge detection. What is the idle current with this configuration?&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/zephyr/build/dts/api/bindings/gpio/nordic,nrf-gpio.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/zephyr/build/dts/api/bindings/gpio/nordic,nrf-gpio.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481776?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 11:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3964651-d0c0-4565-80cd-b3acedcea202</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;to add to the mystery&lt;/p&gt;
&lt;p&gt;My idle current is exactly the same with edge triggering with the entry of &amp;quot;sense-edge-mask&amp;quot;, so now have no additional current draw compared to having it un-initialized.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481763?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 11:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba1e33db-9e38-4783-852b-85056b8786fd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Edge triggering will increase the idle current with ~17 uA compared to level triggering (GPIOTE IN event vs PORT event), but not 200 uA. Have you tried reading out the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=5_2_0_19_2_15#register.PIN_CNF-6"&gt;PIN_CNF[6]&lt;/a&gt;&amp;nbsp;register to verify that the pin configuration is as expected?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481760?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 11:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74f6b684-d767-4695-907f-272dc4a102ef</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;Update&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;retVal = gpio_pin_interrupt_configure_dt(&amp;amp;dt_btn,&lt;span&gt;GPIO_INT_EDGE_BOTH&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;Current consumption is increased here&lt;/pre&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481756?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 11:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d039bfa-ba07-499c-bb7a-8725ff78017d</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;Same issue on multiple boards. I have set the GPIO to be a test point and same current consumption so it is not&amp;nbsp; a hardware issue on that GPIO&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481738?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 10:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55c94256-e785-46c9-b0ee-0f5837df94a2</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp; Unconfigured the Current consumption is low and configured the increased current consumption is about 180-200uA&lt;/p&gt;
&lt;p&gt;I have acquired more units to test, I will give them ago&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO input pin leaking current</title><link>https://devzone.nordicsemi.com/thread/481511?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 11:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e7ebf89-1eb8-4066-ba4c-26b804279135</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see anything wrong with your configuration, which makes me suspect the leakage may be in your circuit. What is the leakage current you measured, and do you observe the same if you don&amp;#39;t configure the button input but leave it in its reset state (input, disconnected)?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>