<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>low power delay ms</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/89005/low-power-delay-ms</link><description>Hi i want to make a low power delay ms (blocking) function for nrf52805 without softdevice and without NRFx, just writing to the registers. 
 
 The RTC1 events_tick never gets set, the rtc1 event cc 0 never gets set. the isr does not execute . 
 what</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 15 Jun 2022 14:40:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/89005/low-power-delay-ms" /><item><title>RE: low power delay ms</title><link>https://test-devzone.nordicsemi.com/thread/372622?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 14:40:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69962265-ae78-4bb9-a273-b211168ed108</guid><dc:creator>user15146</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try adding&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Enable EVENTS_COMPARE[0] generation
NRF_RTC1-&amp;gt;EVTENSET = RTC_EVTENSET_COMPARE0_Enabled &amp;lt;&amp;lt; RTC_EVTENSET_COMPARE0_Pos;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Might also want to add a IRQ handler.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// IRQ handler
void RTC1_IRQHandler(void)
{
  volatile uint32_t dummy;
  if (NRF_RTC0-&amp;gt;EVENTS_COMPARE[0] == 1)
  {
    NRF_RTC0-&amp;gt;EVENTS_COMPARE[0] = 0;

    
    // Read back event register so ensure we have cleared it before exiting IRQ handler.
    dummy = NRF_RTC0-&amp;gt;EVENTS_COMPARE[0];
    dummy;
  }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;PS: I recommended&amp;nbsp;using the nrfx driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>