<?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>SPIS current drain, depends on GPIO config?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44309/spis-current-drain-depends-on-gpio-config</link><description>Hello all, 
 I&amp;#39;m working on a device using nRF52832, interfacing to another microcontroller. I was seeing higher than expected consumption, so started to reduce code to find where it was. 
 The nRF52 is now only configured as SPIS, based on the spis peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Mar 2019 14:20:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44309/spis-current-drain-depends-on-gpio-config" /><item><title>RE: SPIS current drain, depends on GPIO config?</title><link>https://devzone.nordicsemi.com/thread/174033?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 14:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48f21b12-68f6-4308-b963-eb46823bbec8</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;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;When I change &lt;span style="background-color:#999999;"&gt;NRF_GPIO_PIN_INPUT_CONNECT &lt;/span&gt;to&lt;span style="background-color:#999999;"&gt;&amp;nbsp;NRF_GPIO_PIN_INPUT_DISCONNECT&lt;/span&gt;, I see a reduction in power consumption.&lt;/p&gt;
&lt;p&gt;Is this expected? Is it a bug or am&amp;nbsp;I breaking something?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You haven&amp;#39;t broken anything, but you have disconnected the IO internally. This means that the MISO pin cannot be sampled by the peripheral itself.&lt;/p&gt;
&lt;p&gt;By setting this field to _CONNECT, it ensures that the pin buffer internally to the chip is connected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Setting the GPIO to _DISCONNECT while operating at the input configuration ensures that the pin does not float while you&amp;#39;re in sleep. Floating GPIOs tend to cause high current consumption, as you&amp;#39;re seeing when entering SystemOff mode.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I couldn&amp;#39;t find a clear explanation or schematic of the GPIO so I can&amp;#39;t really tell, does&amp;nbsp;anyone know where to find it?[/quote]
&lt;p&gt;There&amp;#39;s been many discussions on this topic. Try searching the forum (or other EE forums) for &amp;quot;floating GPIO&amp;quot; to get a more detailed description of the problem.&lt;/p&gt;
&lt;p&gt;Bottom line: You should always disconnect the pin buffer&amp;nbsp;&lt;em&gt;or&lt;/em&gt; set your inputs to a defined level when entering sleep mode.&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></channel></rss>