<?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>PPI access in a radio timeslot?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62437/ppi-access-in-a-radio-timeslot</link><description>Hi, 
 We are using nRF52840 with nRF5 SDK ver 16.0.0 with Softdevice S113 ver 7.0.1. 
 We use the radio timeslot to implement low level radio comm with very tight timing requirements. I wonder if we can use PPI in the timeslot? 
 The Softdevice spec </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jun 2020 10:36:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62437/ppi-access-in-a-radio-timeslot" /><item><title>RE: PPI access in a radio timeslot?</title><link>https://devzone.nordicsemi.com/thread/254667?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 10:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc283733-18fc-464c-a288-9e6a69b5d3b0</guid><dc:creator>Bjorn191023</dc:creator><description>&lt;p&gt;Thanks Edvin, then I know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI access in a radio timeslot?</title><link>https://devzone.nordicsemi.com/thread/254659?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 10:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f44f6cd2-55d4-41ed-8451-cba953f40e08</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;I have not seen the actual source code for the softdevice, but this is some key features of the timeslot and softdevice:&lt;/p&gt;
&lt;p&gt;- The softdevice takes care of all the timings and the radio for any BLE related events.&lt;/p&gt;
&lt;p&gt;- If you want to use the radio for something other than BLE, you can do this using the timeslot API. This will give you full access to the radio within a given timeslot.&lt;/p&gt;
&lt;p&gt;- In order to make the softdevice an effective binary that doesn&amp;#39;t take up a lot of CPU power to maintain a BLE connection, a lot of HW tricks are used, instead of SW. Among these are the use of PPI and timers (TIMER0 and RTC0).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I highly suspect that the softdevice use RTC0 and PPI to trigger the next radio events, whether or not you use the Timeslot API or not. Remember that the Timeslot API grants you access to the radio, and some other peripherals that are restricted, but the softdevice is still running. So I wouldn&amp;#39;t touch the PPI channels used by the softdevice, even in a timeslot. If you do, then you risk that the softdevice doesn&amp;#39;t know when to communicate with the connected device the next time, or perhaps you disable the PPI that is supposed to start the HFCLOCK that the radio needs, or to trigger the radio itself. Just don&amp;#39;t use them&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You still have 17 PPI channels that you can use, which in most cases are more than enough.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI access in a radio timeslot?</title><link>https://devzone.nordicsemi.com/thread/254546?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 14:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e78db8dc-193e-4371-869b-c94d8779d214</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;This is a very correct approach) good luck in projects&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI access in a radio timeslot?</title><link>https://devzone.nordicsemi.com/thread/254529?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 14:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42ac3915-3522-495f-ae1b-9b7e3e79ec52</guid><dc:creator>Bjorn191023</dc:creator><description>&lt;p&gt;Hi CheMax,&lt;/p&gt;
&lt;p&gt;Thanks for your response. I am currentlly not sure about my need. I am trying to learn the plaform, for this and future projects. That&amp;#39;s why I requested a clarification from Nordic.&lt;/p&gt;
&lt;p&gt;BR / Bj&amp;ouml;rn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI access in a radio timeslot?</title><link>https://devzone.nordicsemi.com/thread/254524?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 14:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a53b6d6-265a-41a3-874a-75edabd27cb8</guid><dc:creator>CheMax</dc:creator><description>[quote userid="84466" url="~/f/nordic-q-a/62437/ppi-access-in-a-radio-timeslot/254498"]2) So I can use PPI channels 0-16. Always or just in the timeslot?[/quote]
&lt;p&gt;always.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="84466" url="~/f/nordic-q-a/62437/ppi-access-in-a-radio-timeslot/254498"]1) So I must not use PPI channels 17-31, not even in the timeslot?[/quote]
&lt;p&gt;with a successful open time slot, you get access to the radio and timer0.&amp;nbsp;Is there access to pre-programmed channels (20 - 31) at this moment? I don&amp;rsquo;t know, but when using time slots, I did not have the need to access channels 20-31.&lt;/p&gt;
&lt;p&gt;maybe there is no need for them in your task?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI access in a radio timeslot?</title><link>https://devzone.nordicsemi.com/thread/254498?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 12:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:866d1408-02cc-4427-9c64-c71db8604574</guid><dc:creator>Bjorn191023</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks, but I need a clarification.&lt;/p&gt;
&lt;p&gt;I checked the mask and it reserves PPI channels 17 -31 to the Softdevice.&lt;/p&gt;
&lt;p&gt;1) So I must not use PPI channels 17-31, not even in the timeslot?&lt;/p&gt;
&lt;p&gt;2) So I can use PPI channels 0-16. Always&amp;nbsp;or just in the timeslot?&lt;/p&gt;
&lt;p&gt;BR / Bj&amp;ouml;rn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI access in a radio timeslot?</title><link>https://devzone.nordicsemi.com/thread/254492?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 12:44:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8148f62-e8e2-40a1-b765-ebc681c76d77</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I agree with &lt;a href="https://devzone.nordicsemi.com/members/chemax"&gt;CheMax&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;The PPI can be used as you like in a Timeslot, but don&amp;#39;t use the PPIs that the softdevice use. You can see what PPI channels the softdevice uses by checking NRF_SOC_SD_PPI_CHANNELS_SD_ENABLED_MSK in nrf_soc.h, which is part of the softdevice header files. Search for it in your project.&lt;/p&gt;
&lt;p&gt;So the rest you can use, as long as you don&amp;#39;t use them anywhere else in your project.&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: PPI access in a radio timeslot?</title><link>https://devzone.nordicsemi.com/thread/254388?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 08:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:effd8105-57d6-427a-8b7e-1f0f7255f920</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I will answer based on my experience.&lt;/p&gt;
&lt;p&gt;PPI module is just a peripheral module, part of the channels of which (0 - 19) can be used by the user for everything that is enough for imagination. and part of the channels, has a hard hardware configuration.&lt;/p&gt;
&lt;p&gt;Custom channels can be used anywhere and anytime, nothing&amp;nbsp;limit it.&lt;/p&gt;
[quote userid="84466" url="~/f/nordic-q-a/62437/ppi-access-in-a-radio-timeslot"]&amp;quot;&lt;em&gt;When a timeslot has been granted the application will gain access to the RADIO, TIMER0, CCM, AAR, and PPI(ch 14-15) modules for the duration of the timeslot.&lt;/em&gt;&amp;quot;[/quote]
&lt;p&gt;The peripherals used by the soft device are listed here. But at the time of gaining access to the time slot, it is free and you can use it to fit your needs.&lt;/p&gt;
&lt;p&gt;I hope I understood your question correctly and my answer will be useful.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Max&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>