Replies: 3 comments 1 reply
-
Tasmota supports indiviual chip mirrored INT GPIO's with interrupt on change only. IOCON is configured like I suggest you try without interrupts first and rely on the polling of Tasmota and see how that works. |
Beta Was this translation helpful? Give feedback.
-
While looking over the MCP23x config possibilities I see an opportunity to make Open Drain interrupts user configurable. I'll work on that now. |
Beta Was this translation helpful? Give feedback.
-
In latest dev (v14.4.0.1) the following addition has been made: Template option IOCON - Optional. IOCON I/O Expander configuration register (bitmap: 0 MIRROR 0 DISSLW HAEN ODR INTPOL 0. Default 0b01011000 = 0x58) Example:
Notice the addition of value pair IOCON 0x5C. On restart the value becomes active:
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm going to use multiple MCP23017 as input in a project. Every MCP23017 provides two interrupt ports INTA and INTB. I'm aware that these ports can be connected to an ESP port.
MCP23017 INT-ports can be programmed for interrupts on low active, high active and open drain.
I don't what the driver does.
My idea is to connect all INT-ports of all MSP to one ESP Port.
With open drain configuration of the MSP INT-ports this will work and I could also power the MCP with 5V while the interrupt can be used with 3,3V (pullup to 3,3V).
My question is:
Is the driver in Tasmota using the interrupts pins of MSP23017 in open drain mode?
In my opinion the would always require a pull-up resistor or is the ESP input configured with a weak pull-up in the ESP.
Can I use multiple MSP23017 interrupts by connection them all together?
Do I have to use an external pull-up or is the ESP configured with an internal pullup?
Thank you für your answers.
Karsten
Beta Was this translation helpful? Give feedback.
All reactions