Skip to main content
1 of 4
Majenko
  • 56.4k
  • 9
  • 106
  • 190

No, you cannot do what you are thinking (if you are thinking what I think you are thinking).

The devices you have pointed to are not SPI devices, but shift registers. They do not operate the same way as SPI, however SPI can be used to drive them.

They are actually more akin to JTAG that SPI.

In a shift register or JTAG device the data input (TDI in JTAG parlance) is fed into a simple shift register, and the final bit output of the shift register falls out into the data output (TDO in JTAG). That's not how SPI works.

In SPI the SDI and SDO pins are completely separate and the relationship between the data in one and the data in the other is purely down to the whims of the chip. It is common to clock in a command or register location into the SDI pin and, on the next byte, the contents of that register is clocked out of the SDO pin.

So no, the input doesn't "fall over" into the output like a shift register.

If you want to reduce the number of CS pins used then you could use, say, a 74HC154 4-to-16 decoder to connect 15 devices to just 4 CS pins (reserve 1 pin for "no device selected").

Majenko
  • 56.4k
  • 9
  • 106
  • 190