<?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>PPI with WFE/WFI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34305/ppi-with-wfe-wfi</link><description>Hi team, 
 
 I understand PPI&amp;#39;s main feature is to connect the peripherals automatically and save CPU power. 
 Let&amp;#39;s say peripheral A&amp;#39;s event is connected to the peripheral B&amp;#39;s task using PPI and CPU is halted by WFE/WFI. 
 Will the CPU be woke up if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Nov 2023 14:30:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34305/ppi-with-wfe-wfi" /><item><title>RE: PPI with WFE/WFI</title><link>https://devzone.nordicsemi.com/thread/455795?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2023 14:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce543160-42ba-4f17-9981-45218eb0aac1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10522/does-sev-clear-or-set-the-event-register/39139"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI with WFE/WFI</title><link>https://devzone.nordicsemi.com/thread/455768?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2023 13:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fab912a7-601c-43e8-90b0-e243cf4f3d78</guid><dc:creator>pungent1188</dc:creator><description>&lt;p&gt;Why is __WFE needed twice? Wouldn&amp;#39;t that mean losing first event?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI with WFE/WFI</title><link>https://devzone.nordicsemi.com/thread/131847?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 10:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b045dc-6b19-487e-85b4-cc9ac60da8c5</guid><dc:creator>eric ding</dc:creator><description>&lt;p&gt;Got it. Big thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI with WFE/WFI</title><link>https://devzone.nordicsemi.com/thread/131811?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 08:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:912d953e-7830-4f1f-8b37-079636ec438f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The difference between WFI and WFE is described in the &lt;a href="http://infocenter.arm.com/help/topic/com.arm.doc.dui0553a/BABHHGEB.html"&gt;ARM Cortex-M4 Devices Generic User Guide&lt;/a&gt;. Interrupts also cause wake-up from WFE, so WFE and WFI can be used interchangeably in most cases. Note that&amp;nbsp;SEV can be used together with WFE as shown below to ensure that the device&amp;nbsp;goes to sleep also when the event register is already set.&lt;/p&gt;
&lt;p&gt;Most SDK examples and the SoftDevice use code similar to this to go to sleep:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Make sure the event register is cleared
__SEV();
__WFE();
// Enter System ON sleep mode
__WFE();&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI with WFE/WFI</title><link>https://devzone.nordicsemi.com/thread/131802?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 07:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a42cc4ed-2d70-448d-9967-429f673bb595</guid><dc:creator>eric ding</dc:creator><description>&lt;p&gt;okay, understood, thanks.&lt;/p&gt;
&lt;p&gt;Then , one more question, what&amp;#39;s the difference between WFI and WFE in the nRF serial platform?&lt;/p&gt;
&lt;p&gt;or in which case should the WFI be used and in which case using WFE?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI with WFE/WFI</title><link>https://devzone.nordicsemi.com/thread/131801?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 07:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eb8a9af-e99e-4464-8372-5fed5435fbdc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, that is correct. The CPU will only we waken up if there is an event &lt;em&gt;and&lt;/em&gt; the event is configured to generate an interrupt in the INTENSET register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI with WFE/WFI</title><link>https://devzone.nordicsemi.com/thread/131800?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 07:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d624a88f-ea21-4379-b40c-aad09fdbf93f</guid><dc:creator>eric ding</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Either the CPU is halted by WFI or WFE, as long as the event is not enabled and connected to NVIC, the CPU will not be woke up, is this the correct understanding?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Eric.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI with WFE/WFI</title><link>https://devzone.nordicsemi.com/thread/131797?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 07:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb3fad80-700c-45c5-ba5a-cf1780a0c597</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;PPI is independent of the CPU and will not wake up the CPU. However, the same event that can be connected to a PPI channel can also be configured to generate an interrupt &lt;em&gt;if&lt;/em&gt; you want to wake the CPU. The figure in the beginning of the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/peripheral_interface.html?cp=2_0_0_5_0"&gt;Peripheral interface&lt;/a&gt;&amp;nbsp;chapter in the Product specification shows how this is related.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>