<?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>Why GPIO can be used as power supply pin?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10039/why-gpio-can-be-used-as-power-supply-pin</link><description>Hi all, 
 I am new in nRF51822. Today I am doing experiment using GPIO and radio transmission.
I wrote a very simple code as below: 
 int main(void)
{ 
 init_clock();
radio_configure();
transmit();
nrf_gpio_cfg_sense_input(8, NRF_GPIO_PIN_PULLDOWN</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Nov 2015 10:06:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10039/why-gpio-can-be-used-as-power-supply-pin" /><item><title>RE: Why GPIO can be used as power supply pin?</title><link>https://devzone.nordicsemi.com/thread/37208?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 10:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22780044-4a4d-449d-a101-e02e8e4dc274</guid><dc:creator>andlier</dc:creator><description>&lt;p&gt;You&amp;#39;re &amp;quot;backpowering&amp;quot; the chip through the protection diode in the GPIO-pin. (google &amp;quot;backpowering mcu&amp;quot; for more on that.)&lt;/p&gt;
&lt;p&gt;Even if it works, this is definitely not the way the chip is intended to be operated, so the datasheet can&amp;#39;t be trusted and you can easily end up with brown-outs etc. depending on what your code does because of the higher impedance path through the gpio protection circuitry.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;There is a &amp;quot;diode&amp;quot; or protection circuit to the Vdd rail from the GPIO pin. This is there to protect the GPIO input from over-voltage conditions in case the GPIO pin voltage goes above Vdd. In your case Vdd is not powered, so effectively at 0V and you apply a voltage at the GPIO which will flow through that protection diode. A Nordic employee would have to chime in on the long term effects of continuous current through that diode.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;System reset is performed when waking up from off mode. So you&amp;#39;d have to init again. There is an option to retain RAM blocks in off-mode, but then the init-code would have to write retained values to the registers again.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Not 100% sure what you are suggesting. Typically you should have Vdd applied to the chip at all times and either use the internal comparator/ADC to sample the 3.5V or a divided down version of it if Vdd is lower than 3.5V. Or you can use a GPIO pin together with an external voltage comparator.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>