<?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>example code to reset timer when radio pipe address matched?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31105/example-code-to-reset-timer-when-radio-pipe-address-matched</link><description>Good evening, I&amp;#39;m trying to understand how to use the SDK 12 to connect peripherals using PPI such that when an address match occurs (say on pipe 1&amp;#39;s address+prefix), a timer is reset. 
 I&amp;#39;m struggling to understand how to set this up. I&amp;#39;m not using a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Mar 2018 11:59:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31105/example-code-to-reset-timer-when-radio-pipe-address-matched" /><item><title>RE: example code to reset timer when radio pipe address matched?</title><link>https://devzone.nordicsemi.com/thread/122809?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 11:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff29a3c5-72dc-4e6c-8c33-0b51f2cda43a</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hey Andrew,&lt;/p&gt;
&lt;p&gt;You need to connect the RADIO&amp;#39;s&amp;nbsp;&lt;span&gt;EVENTS_DEVMATCH event with a TIMER&amp;#39;s&amp;nbsp;TASKS_CLEAR task, and one of the SPI&amp;#39;s events with the TIMER&amp;#39;s&amp;nbsp;TASKS_CAPTURE task.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I need you to open up the PPI example in SDK14.2/examples/peripheral/ppi and learn how to&amp;nbsp;setup TIMERs with PPI.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Each peripheral driver has&amp;nbsp;functions&amp;nbsp;called&amp;nbsp;nrf_drv_&amp;lt;peripheral&amp;gt;_task_address_get() and nrf_drv_&amp;lt;peripheral&amp;gt;_event_address_get(). They are used to get the address of a specific task or event who are in turn passed to the&amp;nbsp;&lt;/span&gt;nrf_drv_ppi_channel_assign(&amp;amp;yourChannel, taskAdress, eventAddress) function. Now you need to enable the given channel&amp;nbsp;&lt;span style="font-family:inherit;"&gt;with&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;nrf_drv_ppi_channel_enable&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;(yourChannel) and the given event is now connected to the given task.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>