<?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>Sleep when the button is pressed, and wake up after releasing the button?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23528/sleep-when-the-button-is-pressed-and-wake-up-after-releasing-the-button</link><description>I am trying to stop RTC by pressing one button and wake up again by releasing the same button.
My RTC now runs around 4 uA while being on system-on sleep mode by __SEV(); __WFE(); __WFE();
However, the current goes to around 200 uA when the button is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jul 2017 10:31:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23528/sleep-when-the-button-is-pressed-and-wake-up-after-releasing-the-button" /><item><title>RE: Sleep when the button is pressed, and wake up after releasing the button?</title><link>https://devzone.nordicsemi.com/thread/92427?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 10:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36c48603-ed54-40c5-8c2c-612e54c2d016</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You can use an external pullup resistor. Configure the GPIO using &lt;code&gt;NRF_GPIO_PIN_NOPULL&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_gpio_cfg_sense_input(BUTTON_2, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_HIGH);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Connect large resistor from GPIO to VDD. 1 MΩ will give you ~3 uA current draw (with VDD = 3V), when pushing the button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep when the button is pressed, and wake up after releasing the button?</title><link>https://devzone.nordicsemi.com/thread/92428?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 09:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b0d5ab-f8ff-4f58-a8f0-53cbfb674ed9</guid><dc:creator>HelloWorld</dc:creator><description>&lt;p&gt;If I can&amp;#39;t change my requirement, is there a way to solve the problem to lower current draw of ~200 uA?
e.g. like the current goes up for the sense but immediately goes back down to less than 10uA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep when the button is pressed, and wake up after releasing the button?</title><link>https://devzone.nordicsemi.com/thread/92426?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 14:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84a4b033-cfd8-4b80-bc1e-0f4e9735d77b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The increased current is due to the pin being configured with pull-up resistor. When button is pressed, this will cause &lt;a href="https://devzone.nordicsemi.com/question/67672/nrf52832-gpio-with-pullup-current/?answer=67675#post-id-67675"&gt;current draw of ~200 uA&lt;/a&gt;. Could you change your application to avoid having to hold the button, for instance by pressing once to stop RTC and one more time to wake from sleep?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>