<?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>LE1 cann&amp;#39;t enter interrupt function after RTC wake up</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2504/le1-cann-t-enter-interrupt-function-after-rtc-wake-up</link><description>Hi all 
 I get LE1 enter sleep mode(PWRDWN = 0x04;)and use RTC to wake up,but LE1 cann&amp;#39;t enter interrupt function after RTC wake up. 
 If I just use RTC to run ,LE1 can generate interrupt normally. 
 Anyone give me some advice?Thank you very much!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 May 2014 12:04:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2504/le1-cann-t-enter-interrupt-function-after-rtc-wake-up" /><item><title>RE: LE1 cann't enter interrupt function after RTC wake up</title><link>https://devzone.nordicsemi.com/thread/10044?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 12:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be339494-238c-4c3d-9526-98c072c50d30</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The RTC will first wakeup on a pre-start time (see page 97 in the datasheet) to make sure that the clock sources are running.&lt;/p&gt;
&lt;p&gt;Add this to your main while loop:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
        LED3=!LED3;
        PWRDWN = 4;
        PWRDWN = 0;
        // Device will wake up on pre-TICK. Set to STANDBY until actually TICK occurs.
        // If this next line is commented out, Race condition will occur: the device will go into REG_RET without running the TICK routine!
        PWRDWN = 7;
        PWRDWN = 0;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note: Theres no need to init the RTC again in the while loop, as you&amp;#39;ve already init&amp;#39;ed it before going into the while loop.&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>