Hi guys !
I'm new and I wanted to know if it's possible to have two slaves controlled by a single spi master (from the kl25z) with the chip select or do I have to use two spi master ?
I didn't understand where the chip select pin are on the datasheet. It looks like there's just one chip select for an spi master but on several pins ?
Yes, having two SPI slaves (or more) is easily possible with one SPI master. But in that case disable the automatic chip select feature of the peripheral, because otherwise that chip select is asserted for any bus transfer. Instead, have two normal pins used as chip selects.
I hope this helps,
Erich
Ok thanks ! Well do you maybe know if disabling the automatic chip select would be a problem if I want to communicate with an Ethercat ASIC ?
this should not be a problem at all. Just make sure you have the chip select line configured properly. I did this with a Beckhoff Ethercat module.
Ok all right ! Then everything is fine :smileyhappy: