<?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>Timers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119686/timers</link><description>Hi 
 I am would like to know how to setup *.overlay file for timer and find code for a simple timer interrupt using the nrf54l15. 
 Best Regards 
 David</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Mar 2025 13:25:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119686/timers" /><item><title>RE: Timers</title><link>https://devzone.nordicsemi.com/thread/527174?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 13:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79633c31-ab22-40a1-bbe6-c1513de4cd0b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/timer.html#d1794e209"&gt;https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/timer.html#d1794e209&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timers</title><link>https://devzone.nordicsemi.com/thread/527165?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 12:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb253794-8db6-4a2d-931b-9cbf1ead9cef</guid><dc:creator>DPJONES</dc:creator><description>&lt;p&gt;Hi Kenneth&lt;/p&gt;
&lt;p&gt;Where do find out what 20 is, where its allocated can it 320, I am very new to nordic so what is 20 referring too do you have 20 different timers in the peripherals.&lt;/p&gt;
&lt;p&gt;Also this line is incorrect&amp;nbsp; nrfx_timer_init(&amp;amp;timer_inst, &amp;amp;config, timer_handler); and does not compile should be&amp;nbsp;nrfx_timer_init(&amp;amp;timer_inst, &amp;amp;config, timer_event_handler);&lt;/p&gt;
&lt;p&gt;BRs&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timers</title><link>https://devzone.nordicsemi.com/thread/527148?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 12:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e83558ca-ca9e-48d5-9bc9-7fbf99f371de</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I skipped using the devicetree in this case, and simply updated:&lt;br /&gt;&lt;a href="https://github.com/kemegard/nrfx_timer_nrf54l15/blob/main/src/nrfx_timer/timer/main.c#L54"&gt;https://github.com/kemegard/nrfx_timer_nrf54l15/blob/main/src/nrfx_timer/timer/main.c#L54&lt;/a&gt;&amp;nbsp;&lt;br /&gt;Which is then used in:&lt;br /&gt;&lt;a href="https://github.com/kemegard/nrfx_timer_nrf54l15/blob/main/src/nrfx_timer/timer/main.c#L97"&gt;https://github.com/kemegard/nrfx_timer_nrf54l15/blob/main/src/nrfx_timer/timer/main.c#L97&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timers</title><link>https://devzone.nordicsemi.com/thread/527141?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 11:48:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fed84b6-4b9c-45f6-a169-9c4597abcf56</guid><dc:creator>DPJONES</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you tell me what file has the peripheral declarations ie timer20&lt;/p&gt;
&lt;p&gt;BRs&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timers</title><link>https://devzone.nordicsemi.com/thread/527010?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 15:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed1e9a4c-9383-431c-9dc5-e709fa119cda</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Maybe you can try:&lt;br /&gt;&lt;a href="https://github.com/kemegard/nrfx_timer_nrf54l15/tree/main/src/nrfx_timer/timer"&gt;https://github.com/kemegard/nrfx_timer_nrf54l15/tree/main/src/nrfx_timer/timer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timers</title><link>https://devzone.nordicsemi.com/thread/526736?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 12:00:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deee9bf5-a97e-42bd-bfd0-23ca893fffad</guid><dc:creator>DPJONES</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have just started trying the &lt;a class="Box-sc-g0xbh4-0 kHuKdh prc-Link-Link-85e08" href="https://github.com/too1/ncs-nrfx-timer-example/tree/master" data-testid="breadcrumbs-repo-link"&gt;ncs-nrfx-timer-example&lt;/a&gt;&amp;nbsp;example I have problems, I am using a blinky example to start with and have just added the 2 lines of code below.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;nrfx_timer.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;nrfx_timer_t&lt;/span&gt;&lt;span&gt; my_timer &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRFX_TIMER_INSTANCE&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Error in terminal:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt; from C:/nordic/myApps/blinky_1/src/main.c:8:&lt;br /&gt;C:/ncs/v2.9.0/modules/hal/nordic/nrfx/drivers/include/nrfx_timer.h:64:37: error: &amp;#39;NRF_TIMER1&amp;#39; undeclared here (not in a function); did you mean &amp;#39;NRF_TIMER10&amp;#39;?&lt;br /&gt; 64 | .p_reg = NRFX_CONCAT(NRF_, TIMER, id), \&lt;br /&gt; | ^~~~&lt;br /&gt;C:/ncs/v2.9.0/modules/hal/nordic/nrfx/drivers/nrfx_common.h:200:32: note: in definition of macro &amp;#39;NRFX_CONCAT_2_&amp;#39;&lt;br /&gt; 200 | #define NRFX_CONCAT_2_(p1, p2) p1 ## p2&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Can you please assist&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;David&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timers</title><link>https://devzone.nordicsemi.com/thread/526733?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 11:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faf139b8-ea98-4a3a-9c08-bf280681942f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It depends on what you mean by &amp;quot;accurate timing&amp;quot;, how much deviation can you tolerate?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timers</title><link>https://devzone.nordicsemi.com/thread/526725?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 10:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca28bef-1d1b-49c7-a153-37f643f319cf</guid><dc:creator>DPJONES</dc:creator><description>&lt;p&gt;Hi Kenneth&lt;/p&gt;
&lt;p&gt;Using the K_timer will there not be a problem with interrupts etc, as I want very accurate timings for an ADC sampling.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timers</title><link>https://devzone.nordicsemi.com/thread/526724?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 10:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2f167de-e55d-444a-9ff5-64bd784677a0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There are several options here, you can for instance use Zehyr kernel timers, this will then execute any code at given intervals:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-1.9.2-dev1/page/zephyr/reference/kernel/timing/timers.html"&gt;https://docs.nordicsemi.com/bundle/ncs-1.9.2-dev1/page/zephyr/reference/kernel/timing/timers.html&lt;/a&gt;&amp;nbsp;&lt;br /&gt;(used by:&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-1-zephyr-rtos-advanced/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-1-zephyr-rtos-advanced/&lt;/a&gt;)&lt;br /&gt;(example:&amp;nbsp;&lt;a href="https://github.com/NordicDeveloperAcademy/ncs-inter/blob/main/v2.9.0-v2.7.0/l1/l1_e1_sol/src/main.c"&gt;https://github.com/NordicDeveloperAcademy/ncs-inter/blob/main/v2.9.0-v2.7.0/l1/l1_e1_sol/src/main.c&lt;/a&gt;)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another option, use the low level nrfx drivers:&lt;br /&gt;&lt;a href="https://github.com/NordicSemiconductor/nrfx"&gt;https://github.com/NordicSemiconductor/nrfx&lt;/a&gt;&amp;nbsp;&lt;br /&gt;(an old example for timer in specific using nrfx:&amp;nbsp;&lt;a href="https://github.com/too1/ncs-nrfx-timer-example/tree/master"&gt;https://github.com/too1/ncs-nrfx-timer-example/tree/master&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>