<?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>Restarting timer inside its own IRQ</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59573/restarting-timer-inside-its-own-irq</link><description>Hello all! 
 
 I have a timer that sometimes gets started inside the IRQ of the ESB and sometimes needs to be restarted inside its own IRQ 
 I&amp;#39;m running it in a &amp;quot;one shot&amp;quot; mode, so it stops after it interrupts, and then you need to use code to start it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Mar 2020 16:01:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59573/restarting-timer-inside-its-own-irq" /><item><title>RE: Restarting timer inside its own IRQ</title><link>https://devzone.nordicsemi.com/thread/242510?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 16:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c1f4148-88d9-4085-ada5-cf40e9591cbb</guid><dc:creator>Jose Cazarin</dc:creator><description>&lt;p&gt;Another question:&lt;br /&gt;Is the TIMER3 only used for the esb stack in the NRF2832?&lt;br /&gt;Cause the only references to TIMER3 in the sdk are:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;// nRF52 address fix timer and PPI defines&lt;br /&gt; #define &amp;nbsp; &amp;nbsp; NRF_ESB_PPI_BUGFIX1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&lt;br /&gt; #define &amp;nbsp; &amp;nbsp; NRF_ESB_PPI_BUGFIX2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;br /&gt; #define &amp;nbsp; &amp;nbsp; NRF_ESB_PPI_BUGFIX3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;#define &amp;nbsp; &amp;nbsp; NRF_ESB_BUGFIX_TIMER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NRF_TIMER3&lt;br /&gt; #define &amp;nbsp; &amp;nbsp; NRF_ESB_BUGFIX_TIMER_IRQn &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TIMER3_IRQn&lt;br /&gt; #define &amp;nbsp; &amp;nbsp; NRF_ESB_BUGFIX_TIMER_IRQHandler &amp;nbsp; &amp;nbsp; TIMER3_IRQHandler&lt;br /&gt; #endif&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;So it looks like its just used on the NRF2832 device as bugfix&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restarting timer inside its own IRQ</title><link>https://devzone.nordicsemi.com/thread/242146?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 14:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eadd2627-ff36-4750-9c93-1ff490a4c9b7</guid><dc:creator>Jose Cazarin</dc:creator><description>&lt;p&gt;I switched to another instance of the timer and that worked! So the recommendation is that user code never uses TIMER_2 and TIMER_3 when also running the ESB?&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restarting timer inside its own IRQ</title><link>https://devzone.nordicsemi.com/thread/242136?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 14:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa4c39b7-8fbd-43db-9e8c-d234da8bdb98</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Yeah, that&amp;#39;s it. I&amp;#39;m surprised you&amp;#39;re able to run any ESB links at all.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restarting timer inside its own IRQ</title><link>https://devzone.nordicsemi.com/thread/242124?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 14:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df68a606-6ccc-4da8-8357-64b177f11139</guid><dc:creator>Jose Cazarin</dc:creator><description>&lt;p&gt;I&amp;#39;m using a function to measure the time between two interrupts. I should see a 200ms difference between the values that this function outputs, but I&amp;#39;m seeing the value I mentioned&lt;br /&gt;Im using TIMER2 and I just saw at the docs that the ESB stack uses timer 2 as well (&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fesb_users_guide.html&amp;amp;cp=5_1_5_2_1&amp;amp;anchor=esb_config"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fesb_users_guide.html&amp;amp;cp=5_1_5_2_1&amp;amp;anchor=esb_config&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;So I think this might be the problem, Im gonna this with another instance of the system timers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restarting timer inside its own IRQ</title><link>https://devzone.nordicsemi.com/thread/242055?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 10:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b48fecfd-f349-497d-b7a0-8a827d9f1644</guid><dc:creator>haakonsh</dc:creator><description>[quote user=""]I&amp;#39;m trying to make it interrupt 200ms after it is started, but no matter what value I load into the CC register, it always interrupts after around 70ms-80ms[/quote]
&lt;p&gt;How do you know it interrupts after 70-80ms?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Do you share this TIMER instance with the ESB stack, and if so does the ESB stack use the timer at the same time as you&amp;#39;re using it?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>