<?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 the TIMER1 interrupt in nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84700/how-to-use-the-timer1-interrupt-in-nrf-connect-sdk</link><description>Hi, 
 My project has a requirement to toggle the GPIO output in 400 to 500 microseconds cycle, I&amp;#39;ve tried to use the Timer on Zephyr but it can&amp;#39;t supply a stable cycle in 400 to 500 microseconds (sometimes the period up to 570 microseconds). 
 So I&amp;#39;m</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Feb 2024 10:13:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84700/how-to-use-the-timer1-interrupt-in-nrf-connect-sdk" /><item><title>RE: How to use the TIMER1 interrupt in nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/468024?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 10:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3760ca8-c2a0-481e-81c2-763e4f7f10cc</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;hi Alex, could you share the solution? I saw the same issue too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the TIMER1 interrupt in nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/442189?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 03:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43549801-9e21-4675-8350-19fbcd1955ef</guid><dc:creator>pipihua9</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Alex,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have the same problem. Can you tell me the detailed steps to solve this problem?I would appreciate it.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alex&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the TIMER1 interrupt in nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/353223?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 02:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75ae0674-81b1-4530-82fc-c14fff16e6f8</guid><dc:creator>Alex Guo</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;I had solved this issue, thanks a lot!&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alex&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the TIMER1 interrupt in nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/353222?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 02:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:701d1403-e16b-432a-aa5a-83ca1aa62316</guid><dc:creator>Alex Guo</dc:creator><description>&lt;p&gt;Hello Ram,&lt;/p&gt;
&lt;p&gt;I had solved this issue, thanks a lot!&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alex&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the TIMER1 interrupt in nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/352933?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 14:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28d39fc5-44f6-4b1c-a6d9-2fa4ad1ebeb1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Alex,&lt;/p&gt;
&lt;p&gt;I am a bit confused. You say that you want a timer that triggers every 500µs (=0.5ms), but in your snippet, you set the timer to 500ms, so which one is it that you desire? The reason I ask is that if it is in fact 500ms, I would recommend that you look into the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/timers.html#using-a-timer-expiry-function"&gt;k_timer&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you in fact need a 0.5ms timer, then I can agree that it is reasonable to use a timer, and not the RTC (which k_timer will use). If so, you say that your timer sometimes takes 570µs to trigger, but you also say that you get a FATAL ERROR. Which one is it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the TIMER1 interrupt in nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/352843?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 10:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:873fdb11-708a-4e17-a497-f8eab05f38b4</guid><dc:creator>RAM_MS</dc:creator><description>&lt;p&gt;Hello Alex,&lt;/p&gt;
&lt;p&gt;Have you tried with nRF5SDk with segger (I mean without Zephyr).&lt;/p&gt;
&lt;p&gt;Here I am attaching an example where I used Timer1 and Timer2 .&lt;/p&gt;
&lt;p&gt;You can refer this example .&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gpio-interrupt-_5F00_timer.zip"&gt;devzone.nordicsemi.com/.../gpio-interrupt-_5F00_timer.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You have to place this file&amp;nbsp;nRF5_SDK_17.0.2_d674dde\examples\peripheral for direct build and use.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ram&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>