<?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>Use hardware timer in zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104587/use-hardware-timer-in-zephyr</link><description>Hello everyone, 
 I have a custom board with a NRF52840 microcontroller with 32MHz crystal oscillator, running Zephyr RTOS with NRF Connect SDK and want to make use of a hardware timer to generate interrupts every 50&amp;#181;s. 
 I have other peripherals in operation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jul 2024 19:22:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104587/use-hardware-timer-in-zephyr" /><item><title>RE: Use hardware timer in zephyr</title><link>https://devzone.nordicsemi.com/thread/493242?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 19:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d24cdcf0-a30e-4473-8ed4-0a0e16e5b0cf</guid><dc:creator>bbooher</dc:creator><description>&lt;p&gt;There&amp;#39;s an already-accepted approach of using the nrfx APIs directly, but the following should also be valid and I haven&amp;#39;t found it recommended in other places in the forum:&lt;br /&gt;&lt;br /&gt;Based on the documentation, you can use Zephyr Counter peripherals to access the HW timers rather than the RTC peripheral underlying the Timer API. The API is different, but looks like you can access the timers in a &amp;quot;Zephyr way&amp;quot;&amp;nbsp; with this approach.&lt;br /&gt;&lt;br /&gt;&lt;a id="" href="https://docs.zephyrproject.org/latest/hardware/peripherals/counter.html"&gt;https://docs.zephyrproject.org/latest/hardware/peripherals/counter.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use hardware timer in zephyr</title><link>https://devzone.nordicsemi.com/thread/450770?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 08:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29b43033-c6bd-4007-ae7b-27133584f90a</guid><dc:creator>Domi471</dc:creator><description>&lt;p&gt;Thank you very much, this is what I was looking for.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Dom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use hardware timer in zephyr</title><link>https://devzone.nordicsemi.com/thread/450362?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 15:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bb8d19b-93ec-4f1b-bcd8-3dcd3d9cec54</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can find&amp;nbsp;samples of using nrfx APIs for HW timers in &lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/tree/master/nrfx/samples/src/nrfx_timer"&gt;this GitHub repository&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>