<?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>nRF Connect Timer PPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85668/nrf-connect-timer-ppi</link><description>Hi, 
 I am trying to get a simple LED blinking using a timer, gpiote and the ppi. So the Idea is: 
 Timer compare event -- PPI --&amp;gt; gpio toggle. I am using the nRF connect sdk version 1.9.0. 
 My main.c is pretty simple, only containing the basic code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Mar 2022 16:53:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85668/nrf-connect-timer-ppi" /><item><title>RE: nRF Connect Timer PPI</title><link>https://devzone.nordicsemi.com/thread/357501?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 16:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddb80325-9328-400b-aeef-8af63831ed2e</guid><dc:creator>TimK</dc:creator><description>&lt;p&gt;One issue has been solved, the IRQ of the timer has to be connected in order to work.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;IRQ_CONNECT(DT_IRQN(DT_NODELABEL(timer1)), DT_IRQ(DT_NODELABEL(timer1), priority), nrfx_isr, nrfx_timer_1_irq_handler,0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will get the interrupt to be called every second.&lt;/p&gt;
&lt;p&gt;The other error is using &amp;quot;nrfx_timer_compare_event_addr_get&amp;quot; instead of &amp;quot;nrfx_timer_event_addr_get&amp;quot;. So changing to &lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t timer_event_addr = nrfx_timer_event_address_get(&amp;amp;my_nrfx_timer, NRF_TIMER_EVENT_COMPARE0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;also resolves this and the LED blinks with a 1s interval.&lt;/p&gt;
&lt;p&gt;If anyone with more expierience is kind enough, to explain why this IRQ_CONNECT is necessary or there are two methods for getting the timer event, i would be stoked to find out :).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Timer PPI</title><link>https://devzone.nordicsemi.com/thread/357478?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 15:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecbff4a3-d483-4c60-89c4-d0d57e22d5bf</guid><dc:creator>TimK</dc:creator><description>&lt;p&gt;ublox bmd360 evaluation board with the nRF52811&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Timer PPI</title><link>https://devzone.nordicsemi.com/thread/357467?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 15:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2183b739-69c6-4709-b562-dae3666aacd3</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;Which board are you using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>