<?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>two GPIOTE / PPI tasks on a single pin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32915/two-gpiote-ppi-tasks-on-a-single-pin</link><description>Hi, 
 
 We are trying to use GPIOTE / PPI to turn a MOSFET on A microseconds after an event clears a timer and to turn it off B microseconds afterwards. 
 It is easy to do this with a single GPIOTE toggle event, however that is not reliable and often</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Apr 2018 06:12:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32915/two-gpiote-ppi-tasks-on-a-single-pin" /><item><title>RE: two GPIOTE / PPI tasks on a single pin</title><link>https://devzone.nordicsemi.com/thread/127143?ContentTypeID=1</link><pubDate>Fri, 06 Apr 2018 06:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0268147b-558c-4f45-bdce-cfe8252d8298</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Scott,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use the GPIOTE-&amp;gt;TASKS_CLR and GPIOTE-&amp;gt;TASKS_SET connected through PPI using two separate timer events, similar to what is setup here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nrf52-timer-gpiote-ppi-hands-on/blob/master/main.c#L75"&gt;https://github.com/NordicPlayground/nrf52-timer-gpiote-ppi-hands-on/blob/master/main.c#L75&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that if you want several things to occur within the same event, you can use the PPI.FORK functionality to trigger two tasks from the same event.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>