<?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>nrf_drv_gpiote_out_set() is my power switch</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13519/nrf_drv_gpiote_out_set-is-my-power-switch</link><description>To conserve battery power, my Beacon application powers an attached sensor off GPIO pin 24. That way, when the sensor isn&amp;#39;t needed I simply call nrf_drv_gpiote_out_clear(24); and call nrf_drv_gpiote_out_set(24); when I&amp;#39;m ready to use it again. 
 As an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Apr 2016 12:12:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13519/nrf_drv_gpiote_out_set-is-my-power-switch" /><item><title>RE: nrf_drv_gpiote_out_set() is my power switch</title><link>https://devzone.nordicsemi.com/thread/51600?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 12:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aab9ae3-ed39-44c8-93de-3eee25557968</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Yes, you can draw up to 0.5 mA in standard drive and 5 mA in high drive on the GPIO pins.&lt;/li&gt;
&lt;li&gt;Yes, it sounds correct.&lt;/li&gt;
&lt;li&gt;Make sure to gracefully shut down the communication with the sensor before shutting it off, and in most cases you should be fine.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;As to why setting the pin does not work, check to see if it is already in use by other peripherals, and check if the gpiote driver and the pin is correctly initialised. As you are using the CPU to control the GPIOs, things must be done slightly differently from the GPIOTE peripheral example (which uses PPI for toggling the pin.)&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>