<?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>NRF51 SYSTEM ON - RTC + external interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20378/nrf51-system-on---rtc-external-interrupt</link><description>Is it possible to program an NRF51 to wake-up from SYSTEM ON by either RTC or external interrupt? 
 I have some sensors programmed to wake-up by RTC but I would also like the option of interrupting the sleep with a button press if I cannot wait. In essence</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Mar 2017 14:47:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20378/nrf51-system-on---rtc-external-interrupt" /><item><title>RE: NRF51 SYSTEM ON - RTC + external interrupt</title><link>https://devzone.nordicsemi.com/thread/79441?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 14:47:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb750960-8866-4a27-9218-ac7a5f647039</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Cool;) Can you then mark correct answer and close the question?:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SYSTEM ON - RTC + external interrupt</title><link>https://devzone.nordicsemi.com/thread/79440?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 14:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd52dd1a-926d-4494-aa54-64e10c6b7a11</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/1555/how-do-you-put-the-nrf51822-chip-to-sleep/"&gt;Here&lt;/a&gt; is more on WFI/WFE difference. From what I see your code should be correct so my guess would be that you don&amp;#39;t set interrupts correctly before entering sleep mode and so the peripheral cannot wake you up...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SYSTEM ON - RTC + external interrupt</title><link>https://devzone.nordicsemi.com/thread/79442?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 14:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3195cae-b030-4ce7-af16-ffc0b949edfc</guid><dc:creator>Gavin</dc:creator><description>&lt;p&gt;My bad. That does indeed work - it was another piece of my code interfering with it. Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SYSTEM ON - RTC + external interrupt</title><link>https://devzone.nordicsemi.com/thread/79439?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 14:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca40fc2a-76b8-4ca7-b05a-58b26d2a1ead</guid><dc:creator>Gavin</dc:creator><description>&lt;p&gt;Thanks Jan. If I wanted it to wake on either RTC or external interrupt, would I call WFI or WFE? At the moment I am calling WFE (see below) but it does not respond to the external interrupt.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;					// Enter System ON sleep mode
				__WFE();  
				// Make sure any pending events are cleared
				__SEV();
				__WFE();
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SYSTEM ON - RTC + external interrupt</title><link>https://devzone.nordicsemi.com/thread/79438?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 14:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e52e273-dbf9-4d01-b295-ceb5b8e6c30c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Gavin,&lt;/p&gt;
&lt;p&gt;Sure it has. Both RTCx HW peripheral as well as GPIOTE can wake you by interrupt if your code entered &amp;quot;sleep&amp;quot; by WFI/WFE ARM instructions. You can also be woken up from System OFF by GPIO signal (e.g. button press) but RTC cannot run so this is not available.&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>