<?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>GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113748/gpio-interrupt-latency</link><description>Hello DevZone, 
 
 My team is developing a wearable that has time constraints which, we believe, are not being respected by Zephyr. 
 
 The setup is a nRF52840 based board which is connected to a chip (AS7058A by ams OSRAM) that communicates via I2C.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Sep 2024 10:24:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113748/gpio-interrupt-latency" /><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/502583?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 10:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6827ffe5-b717-4559-9813-50428a5c2b24</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ricardo,&amp;nbsp;&lt;br /&gt;Thanks for letting me know. I&amp;#39;m glad that you figured that out. Sorry that I didn&amp;#39;t spot that. Thought you were using 1.8V VDD.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/502582?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 10:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34f06531-63a8-4754-8fe8-a8271ca8606f</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;So the problem was not the problem...&lt;/p&gt;
&lt;p&gt;It was an hardware issue, and I incorrectly assumed it was a Zephyr issue.&lt;/p&gt;
&lt;p&gt;The GPIO generating the interrupt was 1.8V and the board (VDD) was 3.0V.&lt;/p&gt;
&lt;p&gt;As GPIO requires 0.7xVDD to measure logic high, it sometimes took a few ms while to detect it.&lt;/p&gt;
&lt;p&gt;I changed the supply to generate a 3V interrupt and now interrupt handling is instantaneous (~20us) as expected.&lt;/p&gt;
&lt;p&gt;Thanks for the help anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/501784?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 15:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85b5912c-c9b3-45a1-9e4b-f43241151704</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Sorry for not replying.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been busy and not been able to get back at this issue.&lt;/p&gt;
&lt;p&gt;As soon as I have something I&amp;#39;ll get back to you.&lt;/p&gt;
&lt;p&gt;Thank you for your patience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ricardo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/501089?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 08:01:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f31e7c1-aca3-4aac-b6d8-dec2d749760c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ricardo,&amp;nbsp;&lt;br /&gt;You mentioned&lt;/p&gt;
[quote user="Ricardo Ferreira"]The sample at &lt;em&gt;&lt;span style="text-decoration:underline;"&gt;samples/boards/nrf/nrfx&lt;/span&gt;&lt;/em&gt;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt; has zero latency, but as soon as I add a thread to manage communcations and a worker to handle interrupt, interrupt response goes almost to 3ms (although sometimes it instantaneous).[/quote]
&lt;p&gt;Is there anyway you can provide that sample ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I think the approach here is to find a way to reproduce the issue and then try strip down your driver/application until you don&amp;#39;t see the latency then we would know what cause that.&lt;/p&gt;
&lt;p&gt;If you want to use the Zephyr GPIO driver, you can start with the zephyr\sample\basic\button sample. As far as I know, the Zephyr GPIO driver will use gpio_nrfx.c at low level anyway.&amp;nbsp;And in that file you will find&amp;nbsp;IRQ_CONNECT() used.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/501015?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 15:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2247cf06-89f2-4160-8ee8-6077f7385162</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;Hello Hung Bui,&lt;/p&gt;
&lt;p&gt;Yes, I had understood that,&amp;nbsp;so how can I use standard GPIO methods without CONFIG_GPIO = y?&lt;br /&gt;Do I have to change all my drivers to use gpios without CONFIG_GPIO?&lt;/p&gt;
&lt;p&gt;Is there anyway IRQ_CONNECT can coexist with CONFIG_GPIO?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/500999?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 14:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:918faf35-c8ef-4f07-88fc-a64f3b27c2fe</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ricardo,&amp;nbsp;&lt;br /&gt;Thanks for the info. Now I can build and see the same IRQ_CONNECT complain.&amp;nbsp;&lt;br /&gt;From what I can see it&amp;#39;s because the battery library you have, it uses Zephyr&amp;#39;s GPIO driver&amp;nbsp;(in Kconfig in drivers\battery it select GPIO)&lt;br /&gt;You will see the same error if you change CONFIG_GPIO = y in the default nrfx sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The problem is that Zephyr&amp;#39;s GPIO driver also defines a IRQ handler for GPIO causing a conflict with the IRQ_CONNECT define in nrfx sample.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/500949?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 11:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe8bc31c-3815-4f09-99ab-3710adc1b3e8</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;The files I sent you include a custom board in the boards folder with name with nrf52840dk.dtsi and respective pinctrl files, which have all pin configurations. Please make a build configuration with that board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/500944?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 11:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdf59bd4-df42-4299-b248-0c649b90f053</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ricardo,&amp;nbsp;&lt;br /&gt;I tried to build your project here with NCS v2.6.0 board nRF52840dk_nRF52840 but I ran into another error:&amp;nbsp;&lt;br /&gt;It complains about the battery device tree or something.&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0474.pastedimage1725362726660v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Have you made sure you included everything ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please try to test with as simple as possible code to reproduce the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/500935?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 10:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61ab1af1-e59c-4d8a-88d7-7feae45468bf</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;Hello Hung,&lt;/p&gt;
&lt;p&gt;I sent you via PM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/500887?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 07:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9f570c6-6e99-4ee0-9f0d-eceefb9121ce</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ricardo,&amp;nbsp;&lt;br /&gt;Pleas provide your code. It seems that you have connected two irq handlers to the same IRQ.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/500818?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 14:29:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b58e5946-5dcc-4530-8e6e-3715edd1c0e4</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;Hello Hung Bui,&lt;/p&gt;
&lt;p&gt;I only got back from vacation myself today.&lt;/p&gt;
&lt;p&gt;I picked-up a new nrfx samples and started adding my custom code for my drivers.&lt;/p&gt;
&lt;p&gt;When I add code that used GPIO, the compilation starts failing with this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;gen_isr_tables.py: error: multiple registrations at table_index 6 for irq 6 (0x6)
Existing handler 0x9307, new handler 0x9307
Has IRQ_CONNECT or IRQ_DIRECT_CONNECT accidentally been invoked on the same irq multiple times?&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How can I safely change to IRQ_CONNECT?&lt;/p&gt;
&lt;p&gt;Should my other drivers use another method other than GPIO based functions?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ricardo Ferreira&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/499699?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 09:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:661d5398-2fe8-4a41-8a65-afcb39952b8b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ricardo,&amp;nbsp;&lt;br /&gt;I&amp;#39;m taking over the ticket from Håkon because he is on vacation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please send us the code where you modified the&amp;nbsp;samples/boards/nrf/nrfx&amp;nbsp;that&amp;nbsp;reproduce the issue ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I assume you toggle the GPIO when you are in the button_handler ?&amp;nbsp; 2.5ms seems like a lot. Interrupt handler should be able to interrupt works and threads.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/498887?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 14:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23a3ff48-a090-4fbe-bff8-870271f3045e</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Elfving"]&lt;p&gt;Strange that this is happening even when the&amp;nbsp;&lt;span&gt;threads are non-preemptive, though I agree that the other threads are probably the culprit here.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I take this back; the threads running shouldn&amp;#39;t make much of a difference. And&amp;nbsp;&lt;span&gt;2.5ms is way too long.&lt;/span&gt;&lt;/p&gt;
[quote user="Ricardo Ferreira"]The sample at &lt;em&gt;&lt;span style="text-decoration:underline;"&gt;samples/boards/nrf/nrfx&lt;/span&gt;&lt;/em&gt;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt; has zero latency, but as soon as I add a thread to manage communcations and a worker to handle interrupt, interrupt response goes almost to 3ms (although sometimes it instantaneous).[/quote]
&lt;p&gt;Thanks for giving me a way to reproduce it. I&amp;#39;ll try&amp;nbsp;this myself later this week.&lt;/p&gt;
[quote user="Ricardo Ferreira"]The sample at &lt;em&gt;&lt;span&gt;samples/boards/nrf/nrfx&lt;/span&gt;&lt;/em&gt;&lt;span&gt;&lt;/span&gt; has zero latency, but as soon as I add a thread to manage communcations and a worker to handle interrupt, interrupt response goes almost to 3ms (although sometimes it instantaneous).[/quote]
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/498642?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 13:01:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e1df81-ba7e-4993-96ed-9526851bf404</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/elfving"&gt;Elfving&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is a print of the threads&amp;#39; states at the moment the worker is called to handle interrupt off-load communications.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1723813172492v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The only thread preemption is sysworkq.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ricardo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/498618?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 12:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68705451-ec93-49d1-804d-5d79f2247880</guid><dc:creator>Elfving</dc:creator><description>[quote user="Ricardo Ferreira"]&lt;p&gt;When I implement the exact code on my application, the same issue I reported is happening.&lt;/p&gt;
&lt;p&gt;Probably related to other threads running in the system, but it&amp;#39;s strange because all other threads are non-preemptive. I haven&amp;#39;t activated any BLE threads - that will probably increase the latency by a lot.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Strange that this is happening even when the&amp;nbsp;&lt;span&gt;threads are non-preemptive, though I agree that the other threads are probably the culprit here.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you have a look at the other threads that are running? You can eg. use the&amp;nbsp;&lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/reference/ui_panel.html?h=thread#thread-viewer"&gt;Thread Viewer in the VSC extension&lt;/a&gt;. Have look here for a&amp;nbsp;&lt;a href="https://youtu.be/IDC2m91xMb0?si=RunhhR3vPhDBgRNL&amp;amp;t=238"&gt;rundown on how to use it&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/498595?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 10:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be967c22-32c0-4438-8e2c-248f3ce97903</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;An update.&lt;/p&gt;
&lt;p&gt;Still not able to reduce and stabilize interrupt response latency.&lt;/p&gt;
&lt;p&gt;I have tried IRQ_CONNECT and IRQ_DIRECT_CONNECT, with and without&amp;nbsp;IRQ_ZERO_LATENCY flag.&lt;/p&gt;
&lt;p&gt;The sample at &lt;em&gt;&lt;span style="text-decoration:underline;"&gt;samples/boards/nrf/nrfx&lt;/span&gt;&lt;/em&gt;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt; has zero latency, but as soon as I add a thread to manage communcations and a worker to handle interrupt, interrupt response goes almost to 3ms (although sometimes it instantaneous).&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Ricardo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/498330?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 14:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:744cecc1-6a79-466f-b9a9-3c1bf174e09f</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was finally able to pick-up this development again.&lt;/p&gt;
&lt;p&gt;So I followed sample at &lt;em&gt;samples/boards/nrf/nrfx&lt;/em&gt; which uses&amp;nbsp;IRQ_CONNECT and PPI.&lt;/p&gt;
&lt;p&gt;Running the sample directly in a nRF52840Dk, it seems to work perfectly - no delay between interrupt and action.&lt;/p&gt;
&lt;p&gt;When I implement the exact code on my application, the same issue I reported is happening.&lt;/p&gt;
&lt;p&gt;Probably related to other threads running in the system, but it&amp;#39;s strange because all other threads are non-preemptive. I haven&amp;#39;t activated any BLE threads - that will probably increase the latency by a lot.&lt;/p&gt;
&lt;p&gt;I tried changing priorities but no improvement.&lt;/p&gt;
&lt;p&gt;I tried changing IRQ_CONNECT to&amp;nbsp;&lt;span&gt;IRQ_DIRECT_CONNECT, but this results in a fatal error.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/497499?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 14:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4ab0209-9ae5-4c6c-991c-1e43dd9a2dcd</guid><dc:creator>Ricardo Ferreira</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/elfving"&gt;Elfving&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Regarding IRQ_DIRECT_CONNECT, I haven&amp;#39;t figured out how to use it with GPIOTE but I&amp;#39;ll have another look and documentation. Also, from what I read, it could cause a few issues with managed GPIO interrupts.&lt;/p&gt;
&lt;p&gt;PPI looks intersting, I will try it.&lt;/p&gt;
&lt;p&gt;I also tried applying&amp;nbsp;&lt;span&gt;NVIC_SetPriority&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;GPIOTE_IRQn&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;IRQ_PRIO_LOWEST&lt;/span&gt;&lt;span&gt;), and it seems to improve latency but doesn&amp;#39;t completely solve it.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Interrupt Latency</title><link>https://devzone.nordicsemi.com/thread/497477?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 12:04:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbefda6a-bde6-4b37-b2c2-8bd82c46447a</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you used&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/kernel/services/interrupts.html#defining_a_direct_isr"&gt;IRQ_DIRECT_CONNECT&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;For testing purposes I guess PPI would be the fastest. You can also try that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>