<?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>nRF51822: How to set pin as Floating?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/535/nrf51822-how-to-set-pin-as-floating</link><description>How can I set a gpio pin as floating? I am not sure what the correct pin configuration should be in order to leave it floating.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Sep 2013 09:59:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/535/nrf51822-how-to-set-pin-as-floating" /><item><title>RE: nRF51822: How to set pin as Floating?</title><link>https://devzone.nordicsemi.com/thread/2779?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2013 09:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4801814-e71d-4197-833c-b5db04a2ffb8</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I&amp;#39;m not quite sure I understand what you mean by floating, but if you have it as an input pin, the nRF51822 wil not drive it to any level. If it&amp;#39;s also not driven externally, I&amp;#39;d then call it &amp;quot;floating&amp;quot;.&lt;/p&gt;
&lt;p&gt;I would however strongly recommend you to not leave any pins floating in a final design. If you&amp;#39;re not using the GPIO for anything, you leave it at &amp;quot;Input buffer disconnected&amp;quot;, which is the default setting, i.e.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
NRF_GPIO-&amp;gt;PIN_CNF[pin_number] = GPIO_PIN_CNF_INPUT_Disconnect &amp;lt;&amp;lt; GPIO_PIN_CNF_INPUT_Pos;

&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>