2022-05-09 01:45 AM
2022-05-09 02:02 AM
Use GPIO expanders on I2C or SPI.
2022-05-09 02:04 AM
How fast and how many GPIOS do you need.
Shift registers are the fastest and cheapest of them all.(careful with the transients)
They need 3 GPIOS to be driven (clock, latch ,data) and you could daisy chain them.
I would use the SPI/i2c options only if i was already using the spi/i2c and i culdnt spare gpios to drive the shift registers
2022-05-09 02:38 AM
Additional ICs on a single card often cost more than a larger model of the same processor. For additional modules, you can use a circuit with an SPI/I2C IO expander IC, or you can design a circuit that can be configured for different features with a MCU.
I would like to remind you that it is more difficult to debug designs with multiple MCUs.