<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[StamPLC: Interrupt of IO expander AW9523]]></title><description><![CDATA[<p dir="auto">I have a M5Stack StamPLC. According to the PCB schema, the ESP G14 (SYS_INT) is connected to the AW9523 INTN. According to AW9523 specs INTN indicates state changes of IO ports and it should be 0 (low-level active), if new state (interrupt request). Unfortunately INTN is always active. It doesn't matter how the AW9523 interrupt enable register is configured or whether data was already read. It's always active. According to AW9523 specs, a 4.7 kΩ resistor is needed to make INTN work properly. I can't see that on the PCB schema of StamPLC. But why is INTN then connected to the ESP? Or is any other IC in the StamPLC putting SYS_INT constantly to 0? Any hints?</p>
]]></description><link>https://community.m5stack.com/topic/7796/stamplc-interrupt-of-io-expander-aw9523</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 23:31:19 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7796.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Sep 2025 22:56:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to StamPLC: Interrupt of IO expander AW9523 on Wed, 03 Sep 2025 04:16:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/nvko23" aria-label="Profile: nvko23">@<bdi>nvko23</bdi></a></p>
<p dir="auto">well, according to the schematics, SYS_INT is connected to multiple ICs, including PI4IOE5V6408, RX8130, AW9523, LM75 and INA226.</p>
<p dir="auto">The required pull-up resistor (5.1k) is R10 - it's drawn near PI4IOE5V6408 on the CPU schematic.</p>
<p dir="auto">Edit: I ran some tests - this is what I found:</p>
<ul>
<li>Without any connections to Inputs 1 - 8 SYS_INT is high (as expected).</li>
<li>However if any input is asserted while powering up M5StampPLC SYS_INT goes low even though AW9523 interrupts are disabled during its initialization. See <a href="https://github.com/m5stack/M5StamPLC/blob/main/src/M5StamPLC.cpp#L147" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</li>
</ul>
<p dir="auto">Adding <code>_io_expander_b-&gt;resetIrq();</code> in the M5StapPLC library after disabling interrupts changes SYS_INT back to high.</p>
<p dir="auto">My conclusion: AW9523 by default at power up has interrupts enabled and any interrupt sticks even when interrupts are disabled later on.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/29883</link><guid isPermaLink="true">https://community.m5stack.com/post/29883</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 03 Sep 2025 04:16:01 GMT</pubDate></item></channel></rss>