<?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 mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46482/sleep-mode</link><description>In working through understanding how sleep works with the SDK I ran into the following note for sd_app_evt_wait() 
 The application must ensure that the pended flag is cleared using sd_nvic_ClearPendingIRQ in order to sleep using this function. This is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 May 2019 14:30:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46482/sleep-mode" /><item><title>RE: Sleep mode</title><link>https://devzone.nordicsemi.com/thread/184953?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 14:30:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be77488a-0e02-4047-bbe5-e5ea7e6d5a22</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="16495" url="~/f/nordic-q-a/46482/sleep-mode"]Do I need to add calls to&amp;nbsp;&lt;span&gt;sd_nvic_ClearPendingIRQ&lt;/span&gt;[/quote]
&lt;p&gt;Generally, you don&amp;rsquo;t need to do that. You will not get pending interrupt on a peripheral as long as intenset is not enabled. We are doing it for the FPU, yes, but that is because it&amp;rsquo;s behavior is a little different from the other peripherals. (The FPU interrupt will always set the pending flag (even if the&amp;nbsp;interrupt is not enabled), you can read about this at the bottom of &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/index.html?cp=5_4_10_0"&gt;this page&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>