<?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>GPIO voltage output</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14383/gpio-voltage-output</link><description>I am using the nRF51822 bluetooth low energy smart beacon kit and am running into trouble using the GPIOs available on the board (pins 0, 1, 2, 3, 5, 9, 11, 20, 21, 24). For the purpose of this post, let&amp;#39;s assume I only need to use one of them, i.e. pin</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jun 2016 12:18:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14383/gpio-voltage-output" /><item><title>RE: GPIO voltage output</title><link>https://devzone.nordicsemi.com/thread/54917?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2016 12:18:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97445da9-4998-47e1-b133-8db2d89c78fa</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To simply configure a GPIO pin as an output and set it high or low you can e.g. do this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Configure pin 5 as output
nrf_gpio_cfg_output(5);
// Set pin 5 high
nrf_gpio_pin_set(5);
// Set pin 5 low
nrf_gpio_pin_clear(5);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you set the pin high its voltage will be VDD, if you set it low the voltage will be 0. You can configure each GPIO pin in high drive or standard drive. In standard drive you can source/sink 0.5mA. In high drive the pin can source/sink 5mA. You can source/sink a total of 15mA. So for example 3 x 5 mA, 5 x 3 mA, etc.&lt;/p&gt;
&lt;p&gt;It is absolutely not recommended to use the LDO to power anything external. The LDOs are used to power internal circuits such as the radio, the CPU, and the flash. If you use them to power anything else you might induce voltage ripples, surges, etc. that can affect the circuits. The reason why the LDO&amp;#39;s output voltage is even routed to a pin is so that you can add an external decoupling capacitor. If you connect anything to the LDOs you do so at your own discretion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO voltage output</title><link>https://devzone.nordicsemi.com/thread/54916?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2016 08:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:678df57c-cb16-482a-8682-4275eed90a4e</guid><dc:creator>wlgrd</dc:creator><description>&lt;p&gt;I think the data sheet says maximum current draw for the gpiote module is 15mA. Wouldn&amp;#39;t recommend to power anything external with that. You could drive a transistor instead for such things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>