<?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>can i put my nrf51822 in sleep mode..?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20763/can-i-put-my-nrf51822-in-sleep-mode</link><description>hai 
 in my application i am using nrf51822 . i have connected some sensors with the mcu. and i am collecting values from the sensors and this values are updated to the service data in every seconds. so can i put my nrf51822 into sleep between each updating</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Mar 2017 08:09:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20763/can-i-put-my-nrf51822-in-sleep-mode" /><item><title>RE: can i put my nrf51822 in sleep mode..?</title><link>https://devzone.nordicsemi.com/thread/81069?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 08:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00795d9f-2718-469c-8539-721490b2721d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are two sleep modes in the nRF51822; &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf#page=44"&gt;System OFF and System ON mode&lt;/a&gt;. System OFF mode is the deepest sleep mode, requiring a reset, GPIO signal or LPCOMP signal to wakeup. You can put the device into this mode by setting &lt;code&gt;NRF_POWER-&amp;gt;SYSTEMOFF = 1;&lt;/code&gt; if not using a softdevice, or by calling &lt;code&gt;sd_power_system_off()&lt;/code&gt; if a softdevice is used.&lt;/p&gt;
&lt;p&gt;System ON mode will wake up on any event from periherals, like RTC, timer, radio etc. You can enter system ON mode by calling &lt;code&gt;__WFE()&lt;/code&gt; if not using softdevice, or &lt;code&gt;sd_app_evt_wait()&lt;/code&gt; if softdevice is used.&lt;/p&gt;
&lt;p&gt;If you look in the examples in the SDK, most of them have a endless loop in main calling &lt;code&gt;__WFE()&lt;/code&gt; or &lt;code&gt;sd_app_evt_wait()&lt;/code&gt; to put the chip in sleep mode as soon as other tasks are done.&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>