<?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>How to set GPIO pin to 0 volts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20851/how-to-set-gpio-pin-to-0-volts</link><description>Hi, i am working on PWM Library example in which i a m configuared GPIO pin P0.25. then i am getting voltage variations 1.3 to 2.8 volts. 
 the problem is when i disable the PWM and also by calling PWM_uninit. i am still getting some constant voltage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Mar 2017 10:16:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20851/how-to-set-gpio-pin-to-0-volts" /><item><title>RE: How to set GPIO pin to 0 volts</title><link>https://devzone.nordicsemi.com/thread/81428?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 10:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c3e6ce9-2339-4fb6-97c3-82c35161ce97</guid><dc:creator>CBD</dc:creator><description>&lt;p&gt;As noted
nrf_gpio_cfg_output(25) will set port0.25 as an output.
nrf_gpio_pin_clear(25) will set port0.25 to 0 volts.&lt;/p&gt;
&lt;p&gt;However, this is reliant on the port0.25 line not being driven high by other hardware on your board. Have you made sure that this isn&amp;#39;t the case?&lt;/p&gt;
&lt;p&gt;You could check this by setting the pin as an input and leave it free floating e.g. nrf_gpio_cfg_input(25, NRF_GPIO_PIN_NOPULL); , and then measure the voltage.&lt;/p&gt;
&lt;p&gt;If a voltage is read that is somewhere in between ground and supply voltage then try grounding the line momentarily, to discharge any held charge, and then rechecking. A non-zero or near zero voltage will indicate that the line is being supplied form somewhere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set GPIO pin to 0 volts</title><link>https://devzone.nordicsemi.com/thread/81427?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 18:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:853377f6-5e9d-4558-acef-1b6eebffcdbe</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;nrf_gpio_cfg_output(25); //config pin P0.25 as output&lt;/p&gt;
&lt;p&gt;nrf_gpio_pin_clear(25);   //set the pin low&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set GPIO pin to 0 volts</title><link>https://devzone.nordicsemi.com/thread/81426?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 07:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8698a0fc-69bb-4a10-8140-3cae1976840b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you configured the GPIO as output and set it to low? You can find the relevant functions in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/group__nrf__gpio.html?cp=4_0_0_6_8_6"&gt;GPIO abstraction documentation&lt;/a&gt;. If not configured, the pins will be left floating.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>