<?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>stop a timer through a PPI task</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33387/stop-a-timer-through-a-ppi-task</link><description>Hello, 
 am using the NRF52-DK softdevice 6.0.0 and NRF SDK 15.0. 
 I am working with PPI, GPIOTE and 2 timers (called timer1 and timer2) on nrf52832 
 Through the COMPARE[0] event of a timer2 , I would like to stop the timer1 then Through the COMPARE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 14 Apr 2018 10:30:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33387/stop-a-timer-through-a-ppi-task" /><item><title>RE: stop a timer through a PPI task</title><link>https://devzone.nordicsemi.com/thread/128328?ContentTypeID=1</link><pubDate>Sat, 14 Apr 2018 10:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dd4eb5c-737d-41ad-b450-f6fbca87e20b</guid><dc:creator>Omnia</dc:creator><description>&lt;p&gt;Hi Sylvain,&lt;/p&gt;
&lt;p&gt;I thought having tried this method at the first read but it appears I made a too quick shortcut between the new nrf&lt;strong&gt;X&lt;/strong&gt; API and the previous nrf one.&lt;/p&gt;
&lt;p&gt;Indeed : &lt;em&gt;nrfx_timer_task_address_get&lt;/em&gt; is the new &lt;em&gt;nrf_drv_timer_task_address_get &lt;/em&gt;method &lt;/p&gt;
&lt;p&gt;BUT nrf_timer_task_address_get does not seems to be equivalent to &lt;em&gt;nrfx_timer_task_address_get.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;My fault, Thanks to you for pointing out my mistake.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stop a timer through a PPI task</title><link>https://devzone.nordicsemi.com/thread/128304?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 18:29:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c088141-9d8e-41e6-9000-93ee6b982656</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;Hi Omnia,&lt;/p&gt;
&lt;p&gt;You should try the following way:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Assigning task and event endpoints so that the PPI channel will shut down timer1 on timer2 COMPARE[0] match.
    err_code = nrfx_ppi_channel_assign(ppi_channel2,
                                          nrfx_timer_event_address_get(&amp;amp;timer2, NRF_TIMER_EVENT_COMPARE0),
                                          nrf_drv_timer_task_address_get(&amp;amp;timer1, NRF_TIMER_TASK_STOP));
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t forget to declare the timer1 instance.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Sylvain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>