<?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>Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105392/multiple-gpio-interrupts</link><description>Hello 
 I have 2 peripherals on my custom nRF52840 board: accelerometer and a touch button 
 I configured the gpio callbacks for both parts but see strange behavior: On a button press both button and accelerometer GPIO callbacks trigger. But on the accelerometer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Nov 2023 14:03:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105392/multiple-gpio-interrupts" /><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/455320?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2023 14:03:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0fb728f-c8fb-49f8-a92a-1cc0753fd2b5</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;I see,&lt;/p&gt;
&lt;p&gt;Thank you for sharing the solution!&lt;/p&gt;
&lt;p&gt;Have a good day,&lt;/p&gt;
&lt;p&gt;best 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: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/455314?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2023 13:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:311f976e-5adb-4195-9933-b0be2c9298f5</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Hi Jared&lt;/p&gt;
&lt;p&gt;There were 2 bugs&lt;/p&gt;
&lt;p&gt;1. The GPIO pin mask was wrong. It included the pin that the button is connected to. That caused the accelerometer interrupt callback to fire on button touch. That code&amp;nbsp;is shared above an you suggested to check the value of the mask passed to&amp;nbsp;&lt;span&gt;gpio_init_callback() . When I did I realized that the mask was wrong and fixed it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2. The second bug is in the code that configures the accelerometer by writing various values to its registers. It enabled the interrupt correctly but the next line of code disabled it by mistake.&lt;/p&gt;
&lt;p&gt;Thank you so much for help!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/455249?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2023 09:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29ba6f1f-f8d8-4244-b2e3-52efbe26d0a4</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;What was the bug?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Was it related to any of the code that you&amp;#39;ve already shared?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/455169?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 18:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed0a59ee-29ce-4ff9-a51c-c7de1652bbfd</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Update&lt;br /&gt;&lt;br /&gt;Turns there was a bug in my code that did not properly configure the part to generate interrupts.&amp;nbsp;&amp;nbsp;With that fixed the GPIO interrupt works perfectly. Thanks a lot for help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/455146?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 14:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97bd1042-07c6-48aa-866e-8c3dc3f91194</guid><dc:creator>Jared</dc:creator><description>[quote user="AndyM"]&lt;span&gt;&lt;span&gt;I believe this is done to avoid&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;the limitation of 8 gpiote channels in the NRF52[/quote]
&lt;p&gt;You might be into something here, what happens if you disable the other button interrupts completely by removing all code related to it. Both in the dts and main.c file. Only include the interrupt for the accelerometer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This whole issue is a bit strange as setting up an interrupt for a button or an external slave should be exactly the same, effectively you should be able to replace the connection of one of the buttons to the pin with the accelerometer and see that it triggers the same interrupt.&amp;nbsp;&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: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/455031?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 23:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac5f8f92-3ff4-4558-a1dd-24bd8469c376</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Jared&lt;/p&gt;
&lt;p&gt;I checked the spec - by default the INT1 pin polarity is active-high&lt;/p&gt;
&lt;p&gt;Also my gpio nodes are configured with sense-edge-mask i.e&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio0&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;status&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;sense-edge-mask&lt;/span&gt;&lt;span&gt; = &amp;lt;&lt;/span&gt;&lt;span&gt;0xffffffff&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;I believe this is done to avoid&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;the limitation of 8 gpiote channels in the NRF52&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;Not sure it matters, it does not work without that property either. Thought I&amp;#39;d bring it up just in case&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Thank you&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/455010?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 19:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82dd7923-4adb-4d46-9141-809ea12f7d9d</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Yes, in the code&amp;nbsp;&lt;span&gt;gpio_pin_interrupt_configure_dt is called before&amp;nbsp;gpio_init_callback&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unfortunately did not work&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Waiting on the results of the hardware analysis, will keep you posted&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anything else worth trying in the meantime?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454975?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 15:46:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:188d9769-577a-45b7-aa0f-1184003b5b7c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AndyM"]Did I miss anything?[/quote]
&lt;p&gt;That looks correct, were you able to verify if the interrupt line is toggled by the slave and if so in what direction?&lt;/p&gt;
&lt;p&gt;Another suggestion, can you try to move the&amp;nbsp;&lt;span&gt;gpio_pin_interrupt_configure_dt() call before&amp;nbsp;&lt;/span&gt;gpio_init_callback() and see if that changes anything? Also try using&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;GPIO_INT_EDGE_TO_ACTIVE instead of&amp;nbsp;GPIO_INT_LEVEL_ACTIVE as well.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454729?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 14:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea04efd3-2d66-4327-b08c-5126909e2998</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Jared, just to clarify, I made the following changes&amp;nbsp; but it did not make a difference&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;acc_int1:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;acc_int1&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;gpios&lt;/span&gt;&lt;span&gt; = &amp;lt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio0&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;14&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;GPIO_ACTIVE_LOW&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;gpio_pin_configure_dt&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;_int1_dt_spec&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;GPIO_INPUT&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;GPIO_ACTIVE_LOW&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;gpio_pin_interrupt_configure_dt&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;_int1_dt_spec&lt;/span&gt;&lt;span&gt;,GPIO_INT_LEVEL_INACTIVE);&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;I also tried&amp;nbsp; GPIO_INT_EDGE_TO_ACTIVE when configuring the interrupt - no luck&lt;/p&gt;
&lt;p&gt;Did I miss anything?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454717?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 14:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39fe4b17-e774-4861-9f8f-cb833d60ac5e</guid><dc:creator>Jared</dc:creator><description>[quote user="AndyM"]I put in a request but it&amp;#39;s out of my hands,l hopefully later this week.[/quote]
&lt;p&gt;Got it,&lt;/p&gt;
[quote user="AndyM"]&lt;div&gt;&lt;span&gt;GPIO_INPUT&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;GPIO_ACTIVE_HIGH so I expected to see a 1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Is my expectation correct? &lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;If by this you mean that you configure the pin as GPIO_ACTIVE_HIGH in the dts and as an INPUT in the application with for example&amp;nbsp;&lt;span&gt;gpio_pin_configure_dt() then that is OK. But you still need to configure what interrupt that should trigger the callback handler which you have already done in gpio_pin_interrupt_configure_dt(). &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I therefore wonder, does the accelerometer pull the signal to a logical 1 or a logical 0 when it enables the interrupt? Have you tried switching it to a&amp;nbsp;GPIO_ACTIVE_LOW and see if that fixes the issue?&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;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454543?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 19:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc3c7cb5-9f7f-4877-bdf5-3822c9183d2e</guid><dc:creator>AndyM</dc:creator><description>[quote userid="73165" url="~/f/nordic-q-a/105392/multiple-gpio-interrupts/454531"]Can you double check it by probing the interrupt line either with an oscilloscope or logic analyzer and confirm that the pin is asserted by the accelerometer?&amp;nbsp;[/quote]
&lt;p&gt;I put in a request but it&amp;#39;s out of my hands,l hopefully later this week.&lt;/p&gt;
&lt;p&gt;One peculiar thing is that&amp;nbsp; gpio_pin_get_dt() always returns 0&amp;nbsp; but the pin is configured as&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;GPIO_INPUT&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;GPIO_ACTIVE_HIGH so I expected to see a 1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Is my expectation correct? And if it is wouldn&amp;#39;t this point to hardware?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454531?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 15:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d988b734-a92f-4ff8-b87c-cdb886a1523d</guid><dc:creator>Jared</dc:creator><description>[quote user="AndyM"]Your hunch was correct. I was including a header which redefined the BIT macro so the pin used for the button was added to the pin mask for the accelerometer interrupt and that&amp;#39; caused the accelerometer gpio callback to be called &amp;nbsp;on a button press. I fixed that and now the button press works fine and does not trigger the accelerometer gpio callback. .Thank you![/quote]
&lt;p&gt;Good,&lt;/p&gt;
[quote user="AndyM"]However the accelerometer interrup callback still is not called on a movement event, as expected. I&amp;#39;m certain that the part generates the interrupt - if I poll the control register of the accelerometer in a loop I see the interrupt bit set when the event occurs. I tried using&amp;nbsp; GPIO_INT_EDGE_TO_ACTIVE&amp;nbsp; and GPIO_INT_LEVEL_ACTIVE flags in gpio_pin_interrupt_configure_dt() function - makes no difference[/quote]
&lt;p&gt;Can you double check it by probing the interrupt line either with an oscilloscope or logic analyzer and confirm that the pin is asserted by the accelerometer?&amp;nbsp;&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: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454526?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 15:22:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47c49e2b-cc12-4748-b2e0-6753c2c7cecc</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Jared&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your hunch was correct. I was including a header which redefined the BIT macro so the pin used for the button was added to the pin mask for the accelerometer interrupt and that&amp;#39; caused the accelerometer gpio callback to be called &amp;nbsp;on a button press. I fixed that and now the button press works fine and does not trigger the accelerometer gpio callback. .Thank you!&lt;/p&gt;
&lt;p&gt;However the accelerometer interrup callback still is not called on a movement event, as expected. I&amp;#39;m certain that the part generates the interrupt - if I poll the control register of the accelerometer in a loop I see the interrupt bit set when the event occurs. I tried using&amp;nbsp; GPIO_INT_EDGE_TO_ACTIVE&amp;nbsp; and GPIO_INT_LEVEL_ACTIVE flags in gpio_pin_interrupt_configure_dt() function - makes no difference&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;Any ideas ?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454476?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 13:46:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5945fc0d-b15a-4f87-85c9-b0bfcc53760d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;Can you set a breakpoint at line :&amp;nbsp;&lt;span&gt;gpio_init_callback(&amp;amp;_gpio_int1_cb,gpio_int1_callback,&amp;nbsp;BIT(_int1_dt_spec.pin));&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And see what the third parameter&amp;nbsp;&lt;span&gt;BIT(_int1_dt_spec.pin) is when you run the program with the debugger?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you share a screenshot of the variable from debug view?&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;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454230?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 13:58:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68a8e51e-39d7-4f01-bbad-ac4208225dd7</guid><dc:creator>AndyM</dc:creator><description>[quote userid="73165" url="~/f/nordic-q-a/105392/multiple-gpio-interrupts/454219"]Just to be clear, are you saying that&amp;nbsp;&lt;span&gt;_gpio_int1_cb() is called when you press the GPIO button, but it&amp;#39;s not called when&amp;nbsp;accint1 is toggled by the accelerometer?&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;Yes, that&amp;#39;s the behavior I see&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454219?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 13:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa7e5c7-7f50-4ee3-af9d-4df0cd236210</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just to be clear, are you saying that&amp;nbsp;&lt;span&gt;_gpio_int1_cb() is called when you press the GPIO button, but it&amp;#39;s not called when&amp;nbsp;accint1 is toggled by the accelerometer?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="AndyM"]Question, Is it OK for the accelerometer int1 pin to be under &amp;quot;gpio-keys&amp;quot;&amp;nbsp; binding? The documentation says this is for buttons[/quote]
&lt;p&gt;Yes, this should be fine,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple GPIO interrupts</title><link>https://devzone.nordicsemi.com/thread/454094?ContentTypeID=1</link><pubDate>Sun, 05 Nov 2023 23:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4033d572-3761-4832-8cdc-c1049219d212</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Question, Is it OK for the accelerometer int1 pin to be under &amp;quot;gpio-keys&amp;quot;&amp;nbsp; binding? The documentation says this is for buttons&lt;/p&gt;
&lt;p&gt;If no - what binding should be under ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>