<?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>How to achieve low interrupt latency from sleep ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27344/how-to-achieve-low-interrupt-latency-from-sleep</link><description>Hello, i&amp;#39;m using a nRF52840 on a PCA10056 and want to wake up from __WFE() with a minimum delay. When i&amp;#39;m using the debugger, i achieve a low latency but without the debugger, the latency is increased by ~14us. What should i do for achieving the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Nov 2017 13:34:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27344/how-to-achieve-low-interrupt-latency-from-sleep" /><item><title>RE: How to achieve low interrupt latency from sleep ?</title><link>https://devzone.nordicsemi.com/thread/107991?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 13:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60bdccf4-3401-4e5b-9445-53e9ecdf0c1d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Sorry for the slow reply.&lt;br /&gt;
I tested this myself and got 15us without CONSTLAT and 11us with CONSTLAT.&lt;br /&gt;
I think this is about the best you can get with the nRF52832, but I am trying to find someone that can explain in more detail what is happening during this startup sequence, and why the debug mode is so much quicker.&lt;br /&gt;
I will get back to you once I have some more information on this.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to achieve low interrupt latency from sleep ?</title><link>https://devzone.nordicsemi.com/thread/107990?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2017 14:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5c7cb68-9f6a-431c-be96-8f5df3adf18d</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;I have tested with pin_change_int example. With the debugger i always get 5.7us latency but
without debugger i got:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;loop: 5.7us&lt;/li&gt;
&lt;li&gt;__WFE: 19.4us&lt;/li&gt;
&lt;li&gt;__WFE + CONSTLAT: 15.9us&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With CONSTLAT, i still lose ~10us. Is there another thing i can do to lower latency ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to achieve low interrupt latency from sleep ?</title><link>https://devzone.nordicsemi.com/thread/107989?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2017 13:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:264dbf6f-c053-4d6c-8d22-635a111f8a04</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Nicolas&lt;/p&gt;
&lt;p&gt;You can use the &lt;em&gt;constant latency&lt;/em&gt; sub power mode to keep the clock running during sleep, which will ensure a quicker wakeup.&lt;/p&gt;
&lt;p&gt;To enable this mode simply activate the CONSTLAT task like this, before entering sleep:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_POWER-&amp;gt;TASKS_CONSTLAT = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Please be aware that this will increase the sleep current significantly, so if you need low sleep currents you might want to reconsider.&lt;/p&gt;
&lt;p&gt;For more information about the sub power modes, please refer to chapter 16.4.1 on page 73 of the &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF52840_OPS_v0.5.1.pdf"&gt;nRF52840 datasheet&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>