<?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>Application Timer RTC1 with Critical sections</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92971/application-timer-rtc1-with-critical-sections</link><description>Hello Nordic-Support Team, 
 i have a question regarding the Application Timer as said in your documentation here: 
 https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fgroup__app__timer.html 
 
 I am using an instance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Oct 2022 14:49:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92971/application-timer-rtc1-with-critical-sections" /><item><title>RE: Application Timer RTC1 with Critical sections</title><link>https://devzone.nordicsemi.com/thread/392444?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 14:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b9613a3-f3ea-46b1-bd24-75daf45d93ab</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Ok, I see what you meant.&lt;br /&gt;You can call&amp;nbsp;NRFX_IRQ_DISABLE(RTC1_IRQn) to disable the interrupt from IRQ1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t think it&amp;#39;s a good idea since it may mess up the compare event handling. As you can see in the IRQ handler:&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666708988565v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Not having the CC counter handling correctly the app_timer may not work correctly after you enable the RTC1 interrupt again.&amp;nbsp;&lt;br /&gt;Have you considered using the app timer &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_timer.html?cp=8_1_3_53_0#lib_timer_usage"&gt;with the scheduler&lt;/a&gt; ? The RTC interrupt may still come but the timeout handler will come on main context.&amp;nbsp;&lt;br /&gt;Another option is to consider put the RTC interrupt at lower priority than the code you plan to execute.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Timer RTC1 with Critical sections</title><link>https://devzone.nordicsemi.com/thread/392422?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 13:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0ae1593-ac84-4bc5-9039-51e8459bd384</guid><dc:creator>Schmale</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;no worries, first of all the Application Timer is running fine.&lt;/p&gt;
&lt;p&gt;I dont want to go into detail, since this would not help at all, instead let me reframe my question.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a possibilty to disable/mask out the RTC1-timer Interrupt? Just the RTC1-Timer, since I dont want to disable the global interrupts.&lt;/p&gt;
&lt;p&gt;I know that i can &amp;quot;Pause&amp;quot; and &amp;quot;Resume&amp;quot; the application timer via the API, but this would result in a shift of the timebase, which I would like to avoid.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Timer RTC1 with Critical sections</title><link>https://devzone.nordicsemi.com/thread/391434?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 12:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c609c1aa-9c5a-4280-a4a3-1ebbaa99306a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jan,&amp;nbsp;&lt;br /&gt;I&amp;#39;m sorry that I don&amp;#39;t fully understand your set up.&amp;nbsp;&lt;br /&gt;Could you explain why you want to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there a possibilty to enable/disable the interrupt source of the Application Timer (RTC1)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What exactly is your challenge with the timer ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>