<?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>nPM1300 interrupt line always stays high even after clearing events</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121254/npm1300-interrupt-line-always-stays-high-even-after-clearing-events</link><description>Hi, 
 I am currently trying to enable the GPIO output interrupt functionality on my nPM1300ek with an STM32. However, I am unable to get it work correctly(I was only able to get it working with nRF52dk with the NPMX API and device tree). I am using GPIO2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 May 2025 08:26:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121254/npm1300-interrupt-line-always-stays-high-even-after-clearing-events" /><item><title>RE: nPM1300 interrupt line always stays high even after clearing events</title><link>https://devzone.nordicsemi.com/thread/534586?ContentTypeID=1</link><pubDate>Fri, 09 May 2025 08:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cac0120e-0dfa-4752-9c75-713525bc6091</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Glad to hear it worked for you&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t hesitate to create new cases if there any other question in the future&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 interrupt line always stays high even after clearing events</title><link>https://devzone.nordicsemi.com/thread/534526?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 19:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a834c22d-903a-429c-ad1c-76ba6af4dabf</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;Thank you! That was the issue. I forgot to clear the event prior to enabling the interrupt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 interrupt line always stays high even after clearing events</title><link>https://devzone.nordicsemi.com/thread/534387?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 06:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:079dcc61-a152-47b1-9e45-f6c3c39b1e1f</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Update:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What we do in the zephyr driver before enabling an i&lt;span&gt;nterrupt is clear the corresponding event first.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;setup:
pmic_write(0x602, 0x5);  // Set GPIO2 to output interrupt
pmic_write(0x017, 0x1);  // Clear the event
pmic_write(0x018, 0x1);  // Enable interrupt on the event

and then in the interrupt 

pmic_write(0x017, 0x1);  // Clear the event
do_stuff();&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We would also recommend verifying that the handler is actually executed as it might also be an misconfigured interrupt input on the host side.&amp;nbsp;&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;Runar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 interrupt line always stays high even after clearing events</title><link>https://devzone.nordicsemi.com/thread/534341?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 16:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8737bfe8-357c-4fc2-8158-7250837c8195</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have asked internally and will update when I hear back&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>