<?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>About PPI priorities</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1471/about-ppi-priorities</link><description>We all know that PPI can have the same event to trigger other tasks.
But I couldn&amp;#39;t find any official document explaining the priorities/timing of those tasks linked to the same events. 
 My understanding and test are showing the lower PPI channel numbers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jun 2016 12:23:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1471/about-ppi-priorities" /><item><title>RE: About PPI priorities</title><link>https://devzone.nordicsemi.com/thread/6575?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 12:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ce698c5-11e2-4ca6-bbf8-a0cc1b794906</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The designer says that it should work the same every time at least. There should be no race condition. So if you have it working already, it should do that reliably all the time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About PPI priorities</title><link>https://devzone.nordicsemi.com/thread/6574?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 11:21:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab36a777-51d0-49b8-b8d8-3c5d54729e02</guid><dc:creator>tellg</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I have a similar usage on the nRF52:
TIMER CAPTURE and TIMER CLEAR as shown below&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_PPI-&amp;gt;CH[0].EEP = (uint32_t)&amp;amp;NRF_GPIOTE-&amp;gt;EVENTS_IN[0];
NRF_PPI-&amp;gt;CH[0].TEP = (uint32_t)&amp;amp;NRF_TIMER1-&amp;gt;TASKS_CAPTURE[0];
NRF_PPI-&amp;gt;FORK[0].TEP = (uint32_t)&amp;amp;NRF_TIMER1-&amp;gt;TASKS_CLEAR;

// Enable PPI channel 0
NRF_PPI-&amp;gt;CHEN = (PPI_CHEN_CH0_Enabled &amp;lt;&amp;lt; PPI_CHEN_CH0_Pos);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The nRF52 ref manual does not say anything on priorities between CAPTURE and CLEAR tasks
Will I risk losing the capture on the nRF52 (silicon rev 1) ?&lt;/p&gt;
&lt;p&gt;At least on my development kit, PCA10040 V1.1.0, the capture works fine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About PPI priorities</title><link>https://devzone.nordicsemi.com/thread/6573?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2014 10:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be43b059-9536-4581-85cd-e1ba6c5cd6bb</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Yes, this is as designed and hence expected to be consistent on the XLR2 chip revision. I agree that this information should be in the RM, so I&amp;#39;ll create a task internally to add this information in a future version.&lt;/p&gt;
&lt;p&gt;For now, I&amp;#39;d as usual be happy if you could accept my reply above as an answer, since I believe that answers the original question. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About PPI priorities</title><link>https://devzone.nordicsemi.com/thread/6572?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2014 17:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86ed6fd5-79e4-4ed8-981e-8df3610fab07</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;I agree. If as you have described in the previous response, the PPI happens in the same clock cycle, then it is the task priority related.
Official document only describes START and STOP priorities.&lt;/p&gt;
&lt;p&gt;Based on my test CAPTURE TASK happens first then the TIMER gets cleared, which is most people would want. If it is always consistent in XLR2 silicon level, then it is great, and should always keep that way :-D.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About PPI priorities</title><link>https://devzone.nordicsemi.com/thread/6571?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2014 17:09:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ed53545-c144-4531-b925-5d462cb5042b</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;This then becomes a question about the task priority in the TIMER more than priorities in the PPI, but I checked it internally, and it seems that at least with XLR2, you should get a valid value in COMPARE, and a TIMER that is cleared on the next clock cycle. What kind of behavior do you see?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About PPI priorities</title><link>https://devzone.nordicsemi.com/thread/6570?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2014 16:32:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:774c565b-6ae5-4764-85fa-c209e12ba51a</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Here is an example:
Use a pin change to trigger TIMER CAPTURE and TIMER CLEAR.
Is there a guarantee that I can get the TIMER value before it gets cleared?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About PPI priorities</title><link>https://devzone.nordicsemi.com/thread/6569?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2014 16:22:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff91ec46-59d3-4a85-9fac-c33faa02386c</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Sorry for the delayed answer, but from a hardware perspective there is no priority difference between the PPI channels. As long as they are all configured before the event happens, the associated task should be triggered within the same 16 MHz clock cycle.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m hence having some trouble understanding what you say. If my explanation above does not align with your findings, can you please explain how you test this, and possibly share any code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>