<?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>Proper method to disconnect (and connect) an NRF52 input (configured via GPIOTE)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28884/proper-method-to-disconnect-and-connect-an-nrf52-input-configured-via-gpiote</link><description>The NRF52 product spec suggests:
&amp;quot;The input buffer of a GPIO pin can be disconnected from the pin to enable power savings&amp;quot; 
 I&amp;#39;ve found that gpio.h provides the function:
nrf_gpio_input_disconnect(pin) 
 However this function doesn&amp;#39;t appear to change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jan 2018 19:42:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28884/proper-method-to-disconnect-and-connect-an-nrf52-input-configured-via-gpiote" /><item><title>RE: Proper method to disconnect (and connect) an NRF52 input (configured via GPIOTE)</title><link>https://devzone.nordicsemi.com/thread/114329?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 19:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b888310-84ab-40f9-b6c9-96360bf2f1d1</guid><dc:creator>Jerod</dc:creator><description>&lt;p&gt;Correct -- I didn&amp;#39;t mean to imply 250uA caused by input buffer.&lt;/p&gt;
&lt;p&gt;You are right, we have a pull-up which will sink to ground through the button/switch and draw 250uA when made.  This input is configured via a call to : nrf_drv_gpiote_in_init() with input config set to PULLUP and GPIOTE_CONFIG_IN_SENSE_TOGGLE(false).&lt;/p&gt;
&lt;p&gt;If I call nrf_gpio_input_disconnect(pin), it doesn&amp;#39;t seem to disconnect this input.
If I call nrf_gpio_cfg_output(pin), it does, and I get no current flow.&lt;/p&gt;
&lt;p&gt;While it seems like a valid work around, I&amp;#39;m just not sure what &amp;quot;else&amp;quot; is happening and if by configuring as an OUTPUT, perhaps some other state is not ideal.&lt;/p&gt;
&lt;p&gt;Moreover, I&amp;#39;d like to understand the proper method to turn this input back on (reconfigure as input) and enable GPIOTE sense &amp;amp; interrupt capabilities properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proper method to disconnect (and connect) an NRF52 input (configured via GPIOTE)</title><link>https://devzone.nordicsemi.com/thread/114328?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 12:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c29952f1-27f0-4b3c-8be7-191f715073ae</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;250uA is not caused by the input buffer. 250uA sounds more like you have configured a pull-up resistor on the GPIO pin and that the button is constantly pulling the pin to GND.&lt;/p&gt;
&lt;p&gt;Can you please describe how you configured the GPIO, and also describe how the button is connected to the chip/pcb?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>