<?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>What is the delay time from wfe to interrupt?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70548/what-is-the-delay-time-from-wfe-to-interrupt</link><description>Hi All 
 as title. 
 I am nRF52 DK PCA10040. 
 Chip select is nRF52832. 
 I measure out from wfe to Timer Interrupt time is 1.3us. 
 Is it correct? and How can I reduce the delay time from 1.3us to 0.3us or less? 
 Austin</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 16 Jan 2021 16:08:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70548/what-is-the-delay-time-from-wfe-to-interrupt" /><item><title>RE: What is the delay time from wfe to interrupt?</title><link>https://devzone.nordicsemi.com/thread/289560?ContentTypeID=1</link><pubDate>Sat, 16 Jan 2021 16:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0127404-62c0-4a09-a257-0115cf59bebc</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Ahh, I&amp;nbsp;missed out that your interrupt already comes from timer... HFCLK is running.&lt;/p&gt;
&lt;p&gt;Did you write your own low-level interrupt handler, or use app_timer handler? What is an interrupt delay if you remove WFE instruction?&lt;/p&gt;
&lt;p&gt;For nRF52832, CPU wake-up time (T&lt;sub&gt;IDLE2CPU&lt;/sub&gt;)=3us. Other tickets (for example, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/15890/interrupt-latency-when-running-wfi-wfe/60612#60612"&gt;this&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44609/nrf52-wakeup-time"&gt;this&lt;/a&gt;) have reported 10-12 us delay when running from flash and 3-4 us when running from RAM. Especially, look at the second link, an oscillogram for &amp;quot;running from RAM&amp;quot; case - the delay between hardware PPI-triggered event and interrupt handler is ~1.1us, so I don&amp;#39;t think you can get much less.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the delay time from wfe to interrupt?</title><link>https://devzone.nordicsemi.com/thread/289552?ContentTypeID=1</link><pubDate>Sat, 16 Jan 2021 12:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49b51a7b-e8ec-4b1e-97fe-5293b1a270b2</guid><dc:creator>Austin (S.F.)</dc:creator><description>&lt;p&gt;Hi Dmitry&lt;/p&gt;
&lt;p&gt;&amp;nbsp; 1. System already in HFCLK&lt;/p&gt;
&lt;p&gt;&amp;nbsp; 2. Timer at 16MHz&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Also, the question is why enter Timer interrupt so slow?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; In my imagine, it should be less then 0.3us.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I need more time to execute more instructions in once interrupt.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Austin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the delay time from wfe to interrupt?</title><link>https://devzone.nordicsemi.com/thread/289547?ContentTypeID=1</link><pubDate>Sat, 16 Jan 2021 09:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c91ae37-2758-4cab-b0aa-7a6a29a9a59e</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi Austin,&lt;/p&gt;
&lt;p&gt;the specification says that startup time for internal ocsillator is 3us, so 1.3us is quite a good result. To achieve faster response, you can try to force HFCLK to run continuously by keeping some peripheral running (for example, timer at 1MHz), but power consumption will increase significantly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>