I suppose he wants to control multiple relays using SPI so one solution is using a 74HC595 and then use the outputs to drive transistors (or a ULN2003) that drive the relays.
The 74HC595 can work either with normal pins or the SPI peripheral of the mcu.
I suppose he wants to control multiple relays using SPI so one solution is using a 74HC595 and then use the outputs to drive transistors (or a ULN2003) that drive the relays.
The 74HC595 can work either with normal pins or the SPI peripheral of the mcu.
How do you mean the status read?
Since all the commands are given by the mcu you can keep the last status in a variable and read from there when you need to read the status.
- - - Updated - - -
To control multiple replays you can use a few port expanders controlled by SPI like MCP23S17 **broken link removed** ans the appropritae driver for each relay