STM8S103F3P6 slave SPI device with multiple CS
Hi,
We are trying to solve some problems regarding our SPI bus (bus stability, due to multiple branches in noisy environments) and reduce costs by eliminating a SPI sensor and make our STM8 to read a NTC. We would like the system to answer as the old SPI sensor, so we want to connect its CS to the STM8. The STM8 already had its own CS, so now it has two CS pins and we need it to answer to both of them. Is there a way to make this work?
Thanks in advance!
EDIT:
Attached you can find the schematic diagram of what I am trying to do. Basically we had a branched SPI bus (the master device can host up to 4 slave modules, each one has again a division of the SPI bus in two branches). We are eliminating the second branching, so there is only four branches with no extra division. The STM8 now has to read the NTC, extract the temperature and answer to the commands that were meant to be sent to the old temp sensor. We are trying to implement this in order not to change the FW in old master devices, so the new modules can be compatible with old host devices without upgrading them.
