<?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>Why isn&amp;#39;t my PPI/SPI channel triggered with GPIOTE?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25143/why-isn-t-my-ppi-spi-channel-triggered-with-gpiote</link><description>Hello, 
 I would like to detect a change in a pin( GPIO_IN_NUMBER ) and depending on it I would like to trigger a SPI transaction, this should happen through PPI. 
 So far I have configured my PPI in this way, is there something faulty on this setting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Sep 2017 07:29:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25143/why-isn-t-my-ppi-spi-channel-triggered-with-gpiote" /><item><title>RE: Why isn't my PPI/SPI channel triggered with GPIOTE?</title><link>https://devzone.nordicsemi.com/thread/99037?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 07:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e53e26-7a26-4eac-95c6-e08414af691b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see three things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You need to enable GPIOTE with &lt;code&gt;nrf_drv_gpiote_init();&lt;/code&gt; at the top of your code.&lt;/li&gt;
&lt;li&gt;You need to enable the internal pullup resistor with &lt;code&gt;configHighToLow.pull = NRF_GPIO_PIN_PULLUP;&lt;/code&gt;. Otherwise the pin might always be low.&lt;/li&gt;
&lt;li&gt;You have probably confused yourself with the naming of your variables. &lt;code&gt;gpiote_Transition_task_addr&lt;/code&gt; is the &lt;em&gt;event&lt;/em&gt; when you push the button. &lt;code&gt;spi_start_evt&lt;/code&gt; is the &lt;em&gt;task&lt;/em&gt; to start the SPI transfer. So if you switch these two variables in &lt;code&gt;nrf_drv_ppi_channel_assign()&lt;/code&gt; it should work.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>