<?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>52 gpio input without pull</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73755/52-gpio-input-without-pull</link><description>hi support team, 
 
 
 customer using 52 gpio p0.26 as input, but config it as no pull in software, strangely there is no pull up in the schematic layout, only 10 nf capacity connected between the p0.26 and ground。 
 After testing, customer find out that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Apr 2021 07:56:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73755/52-gpio-input-without-pull" /><item><title>RE: 52 gpio input without pull</title><link>https://devzone.nordicsemi.com/thread/304423?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 07:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92f9aa0d-ec56-4314-849b-65831f93440d</guid><dc:creator>William.wei</dc:creator><description>&lt;p&gt;OK, understand now, thank you!!&lt;/p&gt;
&lt;p&gt;William.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52 gpio input without pull</title><link>https://devzone.nordicsemi.com/thread/304408?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08c4b9bd-896f-4c6d-ba12-0d8509267d94</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi William,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If a GPIO floats, meaning that the input is at a undefined level; it will draw more power, especially when you also route a interrupt to this signal.&lt;/p&gt;
&lt;p&gt;Floating input is not something that is specific to nRF devices, but all microcontrollers. It is your job as the developer to ensure that no pins float, as&amp;nbsp;floating inputs will cause excessive current consumption.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s many forum posts on this matter, on this forum and many others out there, as well as articles and papers. Search with the keyword &amp;quot;floating inputs&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again; please ensure that your connected inputs are pulled to a defined level.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52 gpio input without pull</title><link>https://devzone.nordicsemi.com/thread/304402?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 05:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ebd32d1-07e4-4e17-ba83-920cd543d3f9</guid><dc:creator>William.wei</dc:creator><description>&lt;p&gt;hi Alseth，&lt;/p&gt;
&lt;p&gt;we are on the edge of collapse, and we couldn&amp;#39;t understand how chip process such kind of testing.&lt;/p&gt;
&lt;p&gt;here is my tesing with power profile in pca10040,as below.&lt;/p&gt;
&lt;p&gt;step1 there in no conducting wire connected to the gpiote pin p0.12,(also power consumption is wired)&lt;/p&gt;
&lt;p&gt;step 2,add a conducting wire to that pin. the power consumption is different.&lt;/p&gt;
&lt;p&gt;by the way&amp;nbsp;i can see that the code is entering gpiote handler interupt.&lt;/p&gt;
&lt;p&gt;1. to avoid the influence of other part of board, i select pin 12 as input, as below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1618292300236v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;and step2 is as below, p0.12 is not connected to anything.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1618292590071v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;and power consumption is as below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1618292144530v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;William.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52 gpio input without pull</title><link>https://devzone.nordicsemi.com/thread/304173?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 06:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a80cfa35-d9d1-4dff-97b9-180123814b38</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the pin floats, the event and thus the interrupt handler gpiote_event_handler can be triggered, causing excessive current.&lt;/p&gt;
&lt;p&gt;Please ensure that connected inputs, especially ones that are interrupt enabled,&amp;nbsp;are pulled to a defined level.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52 gpio input without pull</title><link>https://devzone.nordicsemi.com/thread/304125?ContentTypeID=1</link><pubDate>Sat, 10 Apr 2021 15:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c3a3bf4-fc7e-4be4-a990-45679700c22d</guid><dc:creator>William.wei</dc:creator><description>&lt;p&gt;yes Alseth,&lt;/p&gt;
&lt;p&gt;there is one button that has pull up, so they use on pull in config, but customer occasionally removed it, which causes the gpiote input floating status.&lt;/p&gt;
&lt;p&gt;and you may still try upper code, and will find that there will be an abnormal current in idle status comparing to&amp;nbsp;&lt;span&gt;NRF_GPIO_PIN_PULLUP&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;as i can see, GPIOTE input floating status has leakage current, until there is defined level of that pin&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;William.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52 gpio input without pull</title><link>https://devzone.nordicsemi.com/thread/303973?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 11:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28585bc2-fac2-467c-a0f2-865f4cb4a459</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is that pin set to a defined level by the external device that drives the P0.26 GPIO?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52 gpio input without pull</title><link>https://devzone.nordicsemi.com/thread/303895?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 06:38:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d19a128-94b3-424a-9356-b74c4c6b7906</guid><dc:creator>William.wei</dc:creator><description>&lt;p&gt;to be concrete, they use p0.26 as gpio interrupt and set it as no-pull, as below&lt;/p&gt;
&lt;p&gt;uint32_t err_code; &lt;br /&gt; if (!nrf_drv_gpiote_is_init())&lt;br /&gt; {&lt;br /&gt; err_code = nrf_drv_gpiote_init();&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; } &lt;br /&gt; nrf_drv_gpiote_in_config_t config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(true);&lt;br /&gt; config.pull = NRF_GPIO_PIN_NOPULL;//NRF_GPIO_PIN_PULLUP;//&lt;br /&gt; err_code = nrf_drv_gpiote_in_init(RX_PIN_NUMBER, &amp;amp;config, gpiote_event_handler);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; nrf_drv_gpiote_in_event_enable(RX_PIN_NUMBER, true);&lt;/p&gt;
&lt;p&gt;seems&amp;nbsp;&lt;span&gt;NRF_GPIO_PIN_NOPULL will cause high current.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&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;William.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>