<?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>Direct manipulation of peripherals (TIMER, GPIOTE, PPI)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53187/direct-manipulation-of-peripherals-timer-gpiote-ppi</link><description>Hi, 
 I&amp;#39;m porting code from Simblee/Arduino to Laird&amp;#39;s BL651/Nordic SDK (nRF52810, SDK 15.3, S112). (Simblee discontinued.) For accurate timing of a GPIO pin, I use TIMER1, TIMER2, GPIOTE and PPI. GPIOTE watches an input pin for transition LOTOHI and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Oct 2019 23:55:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53187/direct-manipulation-of-peripherals-timer-gpiote-ppi" /><item><title>RE: Direct manipulation of peripherals (TIMER, GPIOTE, PPI)?</title><link>https://devzone.nordicsemi.com/thread/215388?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 23:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa10d537-42e2-4341-a51e-9dd4c354f22e</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;Thank you Hakon. Have run in to some issues integrating this code into a ble_peripheral example. Pulled away at the moment. Will be back to it soon ... Thx. -Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct manipulation of peripherals (TIMER, GPIOTE, PPI)?</title><link>https://devzone.nordicsemi.com/thread/215008?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 09:16:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f5cca25-8a8b-4e5a-9998-12e2f0eb4843</guid><dc:creator>Hakon</dc:creator><description>[quote user="Tim123"]A related question (being new to Nordic SDK). My understanding is there are legacy drivers with prefix &amp;quot;nrf_dvr_..&amp;quot; and current(?) drivers with prefix &amp;quot;nrfx_...&amp;quot;. I presume I should be using the current &amp;quot;nrfx_...&amp;quot; drivers.[/quote]
&lt;p&gt;In the current SDK nrf_drv_ is just a glue layer for nrfx_, so you can use both, but nrfx_ is what you&amp;#39;re supposed to use and not nrf_drv.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct manipulation of peripherals (TIMER, GPIOTE, PPI)?</title><link>https://devzone.nordicsemi.com/thread/214925?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 20:32:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04cdcf3c-0b2b-4379-a10f-b689f7f1de51</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;Thank you Hakon.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33185/gpioet-interrupt-and-ppi-in-s110/127320#127320" rel="noopener noreferrer" target="_blank"&gt;This post&lt;/a&gt;&amp;nbsp;recommends using API calls rather than direct access to peripheral registers (at least for PPI).&lt;/p&gt;
&lt;p&gt;With SoftDevice (S112) enabled, I presume care is necessary to not use PPI channels reserved&amp;nbsp;for the SD. I see equivalent calls for all nrfx driver&amp;nbsp;PPI API calls in the SD API (e.g. &amp;quot;&lt;span&gt;sd_ppi_channel_assign&amp;quot; for&amp;nbsp;&amp;quot;nrfx_ppi_channel_assign&amp;quot;)&lt;/span&gt;&amp;nbsp;except for nrfx_ppi_channel_alloc, which I presume is the important SD routine for&amp;nbsp;obtaining an available PPI channel.&lt;/p&gt;
&lt;p&gt;The only peripheral I need to access directly, it seems, is GPIOTE. I will do so in order to have two events for a single input pin.&lt;/p&gt;
&lt;p&gt;A related question (being new to Nordic SDK). My understanding is there are legacy drivers with prefix &amp;quot;nrf_dvr_..&amp;quot; and current(?) drivers with prefix &amp;quot;nrfx_...&amp;quot;. I presume I should be using the current &amp;quot;nrfx_...&amp;quot; drivers.&lt;/p&gt;
&lt;p&gt;Many thanks!&lt;/p&gt;
&lt;p&gt;-Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct manipulation of peripherals (TIMER, GPIOTE, PPI)?</title><link>https://devzone.nordicsemi.com/thread/214842?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 12:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:054f2fbc-55f6-4a23-acb8-8f4517fa44e3</guid><dc:creator>Hakon</dc:creator><description>[quote user=""]1) Is it critical to use the peripheral drivers rather than accessing peripherals directly?[/quote]
&lt;p&gt;&amp;nbsp;No, you can access the registers directly, that should be fine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]2) Given the above limitation in GPIOTE, is it okay to manipulate GPIOTE directly?[/quote]
&lt;p&gt;&amp;nbsp;Yes, I believe that should be okay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>