<?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>nrf52 level-triggered interrupt?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38569/nrf52-level-triggered-interrupt</link><description>I&amp;#39;m using the nrf52 to connect to a CAN bus via mcp2515. This chipset features an interrupt pin that will pull low when any interrupt is triggered and will stay low until all interrupt conditions are cleared . Currently I only seem to be able to attach</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Sep 2018 12:31:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38569/nrf52-level-triggered-interrupt" /><item><title>RE: nrf52 level-triggered interrupt?</title><link>https://devzone.nordicsemi.com/thread/149032?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 12:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d491ac1-abb9-42a4-8eec-8d67d4598cd6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I believe there are two ways to solve this, either using PORT event or falling edge as you do today:&lt;/p&gt;
&lt;p&gt;1. PORT event, in that case configure the GPIO pin with sense mechanism in PIN_CNF register (this is level-triggered). You will have to check the (NRF_GPIO) LATCH register to find the pin which triggered the (NRF_GPIOTE) PORT event.&lt;/p&gt;
&lt;p&gt;2. Use as today the falling edge interrupt, but make sure that&amp;nbsp;after enabling the interrupt you manually read the pin to check if it may already be low. If it&amp;#39;s already low execute the callback&amp;nbsp;handler directly to handle the interrupt.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>