I'm working on a project where I have one master device and 64 slave devices. I'm facing a challenge with the SPI protocol's limitation in terms of the number of Slave Select (SS) lines needed for connecting a large number of devices.
Here's my setup and approach:
- Each slave device is connected to an I2C bus.
- There's also an SPI bus connected to all the slaves. However, the SS signal for each slave is configured so that the device is always selected.
- The logic I intend to use is as follows: Before sending or requesting data, a specific slave is selected via the I2C bus. Then, the SPI part of the selected slave is activated for data transmission.
My question is: Can this approach effectively manage the communication with multiple SPI slaves, using I2C for slave selection? Are there any potential pitfalls or better methods to handle such a scenario?
I'm looking for insights, suggestions, or examples of similar implementations. Any help or guidance would be greatly appreciated.