<?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>NRF Connect SPIS Interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115938/nrf-connect-spis-interrupt</link><description>I am wondering if someone can help point me to a repo that explains how to create a gpio interrupt that can detect when my CS line goes from High to Low and jump to a method when detected?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Oct 2024 13:24:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115938/nrf-connect-spis-interrupt" /><item><title>RE: NRF Connect SPIS Interrupt</title><link>https://devzone.nordicsemi.com/thread/508525?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 13:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4400a27e-e507-4edf-82b3-58b42976f3d9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SPIS peripheral &amp;quot;owns&amp;quot; the CS pin, so it cannot be used as a normal GPIO input and generate an interrupt while used for SPIS. However, refering to the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/spis.html"&gt;SPIS specification&lt;/a&gt;, you may be able to use the&amp;nbsp;ACQUIRED event (&amp;quot;T&lt;em&gt;he SPI slave will try to acquire the semaphore when CSN goes low&lt;/em&gt;&amp;quot;). This is used by the driver as you can see in nrfx_spis.c. If you use the driver and do not want to modify it, a non-intrusive way to get an interrupt could be to connect the&amp;nbsp;ACQUIRED event to the EGU via PPI.&lt;/p&gt;
&lt;p&gt;Another more straight-forward alternative could be to connect teh CS line to another GPIO, and configure that as an input for which you enable interrupts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>