<?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>Achieving low power states for GPIO pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39560/achieving-low-power-states-for-gpio-pins</link><description>On page 143 of the datasheet the following is written, &amp;quot;The input buffer of a GPIO pin can be disconnected from the pin to enable power savings when the pin is not used as an input,&amp;quot; . So if we configure a pin to be an output we haven&amp;#39;t acheived the lowest</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Oct 2018 06:15:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39560/achieving-low-power-states-for-gpio-pins" /><item><title>RE: Achieving low power states for GPIO pins</title><link>https://devzone.nordicsemi.com/thread/153365?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 06:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37a35831-31ef-48c7-803e-7887716eab4f</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi John.&lt;/p&gt;
&lt;p&gt;If you configure a GPIO pin as default, you should achieve the lowest power state if you used the function &lt;strong&gt;nrf_gpio_cfg_default(uint32_t pin_number);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In &lt;strong&gt;SDK 15.2&lt;/strong&gt;, this functions sets the following configuration:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;__STATIC_INLINE void nrf_gpio_cfg_default(uint32_t pin_number)
{
    nrf_gpio_cfg(
        pin_number,
        NRF_GPIO_PIN_DIR_INPUT,
        NRF_GPIO_PIN_INPUT_DISCONNECT,
        NRF_GPIO_PIN_NOPULL,
        NRF_GPIO_PIN_S0S1,
        NRF_GPIO_PIN_NOSENSE);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Where the following configuration is needed for low power:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NRF_GPIO_PIN_DIR_INPUT&lt;/strong&gt; sets the pin as an input.&lt;br /&gt;&lt;strong&gt;NRF_GPIO_PIN_INPUT_DISCONNECT&lt;/strong&gt; disconnects the input buffer.&lt;br /&gt;&lt;strong&gt;NRF_GPIO_PIN_NOPULL&lt;/strong&gt; disables the pin pull-up resistor.&lt;/p&gt;
&lt;p&gt;If you havnt used the pin for anything, this is how its already configured, as this is the reset configuration.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>