<?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>Simultaneous use of GPIOTE and other peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72676/simultaneous-use-of-gpiote-and-other-peripheral</link><description>Short version: can I use a pin both as a GPIO input to trigger GPIOTE PPI event, and as SPI MISO *at the same time*? 
 Detailed version: 
 I want to use the SPI peripheral to implement a serial driver for another protocol. The protocol is single wire</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Mar 2021 13:47:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72676/simultaneous-use-of-gpiote-and-other-peripheral" /><item><title>RE: Simultaneous use of GPIOTE and other peripheral</title><link>https://devzone.nordicsemi.com/thread/301226?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 13:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2110187b-7b7f-491b-9f16-3014210ac582</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I might have misunderstood you a bit. Anyways, I did a quick test by merging the nrfx_SPIM example and the pin_change_int example. The modified example would toggle a LED via GPIOTE every time the MISO line would toggle. I think that this would show that it&amp;#39;s indeed possible to trigger a task via GPIOTE from a Pin that is already used by SPIM as MISO.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simultaneous use of GPIOTE and other peripheral</title><link>https://devzone.nordicsemi.com/thread/300596?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 08:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31d57bf9-ca06-463a-a494-6f1b81c02582</guid><dc:creator>Gauthier</dc:creator><description>&lt;p&gt;It seems that your work-around for Errata 58 does something similar: connect an SPI pin (SCK, in this case an output, while in my it&amp;#39;s an input) to GPIOTE, which then through PPI triggers an SPI task (STOP).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52840_EngB%2FERR%2FnRF52840%2FEngineeringB%2Flatest%2Ferr_840_fixed.html&amp;amp;cp=4_0_1_4_2"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52840_EngB%2FERR%2FnRF52840%2FEngineeringB%2Flatest%2Ferr_840_fixed.html&amp;amp;cp=4_0_1_4_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what you refer to with &amp;quot;switching&amp;quot;, I just want to start the transfer on an incoming flank.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simultaneous use of GPIOTE and other peripheral</title><link>https://devzone.nordicsemi.com/thread/300023?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 08:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a0e9bbd-cff9-4aa3-8f21-65eff145bc21</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;&lt;span&gt;This is an unusual use case, and I don&amp;#39;t think it has been tested by us. In general we&amp;nbsp;&lt;/span&gt;&lt;span&gt;recommend&amp;nbsp;&lt;/span&gt;&lt;span&gt;assigning only one peripheral per pin.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Are you doing the switch between&amp;nbsp;&lt;/span&gt;&lt;span&gt;transactions&amp;nbsp;&lt;/span&gt;&lt;span&gt;or during a transaction? If it&amp;#39;s the former then you can use the CS signal instead to trigger the switch, that should give you a bit more time. If it&amp;#39;s the latter then I don&amp;#39;t think that it would be doable. Do you know what IRQ that is blocking the switch when it&amp;#39;s failing?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simultaneous use of GPIOTE and other peripheral</title><link>https://devzone.nordicsemi.com/thread/299536?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 16:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab99d4e-e604-421e-a7ea-418cd5acc64b</guid><dc:creator>Gauthier</dc:creator><description>&lt;p&gt;Not trying to drive a GPIO, but to use as an input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simultaneous use of GPIOTE and other peripheral</title><link>https://devzone.nordicsemi.com/thread/299511?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 14:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26a05aad-30c2-4778-81d9-565929e2397a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;Is it possible (and supported) to have the same pin configured as GPIOTE input, and SPI miso *at the same time*, and get the PPI to react on GPIOTE and start the SPI transfer?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;We recommend only having one peripheral driving one GPIO pin at a time. However, you could use two pins and connect them together externally.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>