<?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 use RTC alarm on nRF54L15?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124361/how-to-use-rtc-alarm-on-nrf54l15</link><description>I am working on an nRF54L15 project and started from: C:\ncs\v3.0.2\nrf\samples\bluetooth\peripheral_uart as the base. I would like to trigger an interrupt once every second. 
 Since the documentation says RTC consumes less power than the timer, I don</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Sep 2025 08:04:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124361/how-to-use-rtc-alarm-on-nrf54l15" /><item><title>RE: How to use RTC alarm on nRF54L15?</title><link>https://devzone.nordicsemi.com/thread/548700?ContentTypeID=1</link><pubDate>Mon, 15 Sep 2025 08:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c6c9a61-e9f8-491d-b863-4a4b5566cbb9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Since the documentation says RTC consumes less power than the timer, I don’t want to use &lt;code&gt;k_timer_start&lt;/code&gt; to generate the interrupt. Instead, I want to use RTC.[/quote]
&lt;p&gt;Both these use GRTC as the backend for creating the timeout.&lt;/p&gt;
&lt;p&gt;The consumption will be similar.&lt;/p&gt;
[quote user=""]I would like to trigger an interrupt once every second.[/quote]
&lt;p&gt;Here&amp;#39;s a section on how to create a timer fitting your scenario:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/kernel/services/timing/timers.html#using-a-timer-expiry-function"&gt;https://docs.zephyrproject.org/latest/kernel/services/timing/timers.html#using-a-timer-expiry-function&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note the usage of a k_timer + workqueue in this scenario. This is because the k_timer handler will run in interrupt context, and you shall not call bluetooth APIs in ISR context.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>