with the PCF8574P you can have 64x8 pins GPIO both diraction with all interapt on one pin
so you can chck ISR what happend
THIs is most used in Scale railway systems
there is also a expander where you can expand to 32x64x8 pins
“These modules run on the I2C bus, and if daisy-chained you can connect upto 8 of these devices in a project. Each device will give us an additional 8-bits of GPIO enabling 64 GPIOs in total.”
So, that board will not be better than mcp23017 except mcp23017 is only for 5V-issues
The I2C voltage compliance range would be the same as the supply range for the PCF8574P. Since you are running a 2560 at 5V it will run with the 5V I2C bus fine.
No need for level shifting on the PCF8574P or others within that same family range that run over the 2.5V to 5.5V range for your 5V rated stuff.
@lupus51 Since there's a lack of connection details, we're free to assume stuff. My assumptions:
you're going to wire leds, buttons, etc. to all the other 2560 I/O, hence you think you need an expander
you're not even really aware of how to use an MCP23017, nor that you can wire 8 together, but you've 'heard stuff, like it can be done'.
So yeah, lots to unpack there. Here's some random commentary on my random assumptions.
You can wire 8 23017 together, if you a) set all the addresses uniquely, b) don't have that LCD on the I2C bus at a conflicting address, c) can wire your power appropriately for the 8 devices, and d) remove the pullups on most of your MCP23017 expanders(assuming you're using them, not bare-designing a board).
You haven't indicated that you're aware that the Mega2560 has power limitations, or what they are, or that they're not overwhelmed already with your planned LED attachments, etc.
Now, all of the above may be irrelevant, but that's why we press for more details. So we can either assess that you're capable of 'things', or that we need to help you deal with more fundamental issues on your project.
One MR to another, I'd suggest you give us a much more detailed indication of what it is you're planning to do. There's plenty of help available here, MR specific and otherwise, but to gain full advantage, you have to engage us. The value of the answers is proportional to the quantity and quality of the input info. Ball's in your court.