<?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 uart peripherial activity wakeup device from sleep ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16034/can-uart-peripherial-activity-wakeup-device-from-sleep</link><description>Dear Sir, 
 I am new in nRF51 and used the ble_app_uart example in our application (nRF51), need power saving function but not necessary power off. 
 The sample code will power off nRF51 as below, and only can wakeup by pressing button. 
 static void</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 Aug 2016 09:11:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16034/can-uart-peripherial-activity-wakeup-device-from-sleep" /><item><title>RE: Can uart peripherial activity wakeup device from sleep ?</title><link>https://devzone.nordicsemi.com/thread/61155?ContentTypeID=1</link><pubDate>Sat, 27 Aug 2016 09:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13169e1b-fa6a-4cf1-84eb-30cda32a022c</guid><dc:creator>RK</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;don&amp;#39;t have any of that power off code, just use sd_app_evt_wait() which will sleep the chip whenever there&amp;#39;s nothing for the CPU to do.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you&amp;#39;re in power-off mode then you will lose any UART data, but if you are just sleeping (sd_app_evt_wait()) then the UART will clock in data and generate an interrupt which will bring you out of sleep mode, as long as you are using interrupts for it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The device only sleeps when you run code which sleep it, ie the power off code you show, or sd_app_evt_wait(), so you already know when you&amp;#39;re sleeping.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Don&amp;#39;t really understand what you&amp;#39;re asking here.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>