My requirement is to use a LTC6820 device to control & collect battery information and then use the built-in Ethernet on my "M-Duino 21+ Ethernet" PLC to send them to a remote server. I've noticed because the LTC6820 communicates with the PLC via SPI, it conflicts with the Ethernet module (which also uses SPI). This means that I can't use the two modules at the same time.
I learned that SPI implements this Master-Slave architecture, with the master only able to talk to one slave at a given time. And it is possible to have the master "switch" communication to a different slave device programmatically. The problem is, I am not sure how to do that.
Ideally, I would like to achieve the following:
LTC6820 --> switches to Ethernet --> switches to LTC6820 --> switches to Ethernet...rinse and repeat.
Thanks in advance for providing detailed instructions preferably with actual coding/examples/tutorials since I am fairly new to this.