<?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 and Wakeup without GPIO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35043/sleep-and-wakeup-without-gpio</link><description>Hi 
 
 Hi i am trying my application for sleep and wakeup without gpio. Actually my work is to put my device(battery powered) in sleep for 5 minutes and after that it should wake it up without any GPIO signal, can anyone suggest me for this..I will be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Jun 2018 09:16:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35043/sleep-and-wakeup-without-gpio" /><item><title>RE: Sleep and Wakeup without GPIO</title><link>https://devzone.nordicsemi.com/thread/134495?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 09:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3397f48-6cc4-4a8a-a219-b32671c04b4e</guid><dc:creator>Kashinath</dc:creator><description>&lt;p&gt;Thank you Einar Thorsrud for your reply..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will try with this and let you know...&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Kashinath&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep and Wakeup without GPIO</title><link>https://devzone.nordicsemi.com/thread/134454?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 06:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8800c0c7-5615-490f-b148-969f81dc4649</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/rtc.html?cp=2_1_0_24#concept_rvn_vkj_sr"&gt;RTC&lt;/a&gt; (using the 32 kHz clock) is a low power timer that is typically used for exactly this. For example, the SoftDevice use RTC0 to wake up for every BLE event. I recommend you to use the app timer (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_timer.html?cp=4_0_0_3_48"&gt;Timer library&lt;/a&gt;) which is a user friendly software library that allows you to make an arbitrary number of single shot or repeated timers using RTC1. The application will get an event (due to a RTC interrupt) whenever the timer expires. The app timer is explained in &lt;a href="https://devzone.nordicsemi.com/tutorials/b/software-development-kit/posts/application-timer-tutorial"&gt;this tutorial&lt;/a&gt; (unfortunately somewhat outdated).&lt;/p&gt;
&lt;p&gt;Make sure to put the CPU to sleep when it is idle, by calling something like the following function in the main loop (assuming no SoftDevice is used):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void sleep_handler(void)
{
    __WFE();
    __SEV();
    __WFE();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, use &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__pwr__mgmt.html?cp=4_0_0_6_11_38_7#ga4ed9cb21c98d64130c12eb8490821673"&gt;nrf_pwr_mgmt_run()&lt;/a&gt;&amp;nbsp;from the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_pwr_mgmt.html?cp=4_0_0_3_32"&gt;power management library&lt;/a&gt; (works both with or without SoftDevice) or &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_2_1_0_2_7_2_0#ga11d88d38ac99fb72cde74c9385d36433"&gt;sd_app_evt_wait()&lt;/a&gt; directly (only if SoftDevice is used).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>