Re:SPI: The serial peripheral interface [video]
by emptycan on Monday November 22, 2021 @01:56PM
(#29310239)
Yes it is - that's what /SS is for.
[ Parent
| on HN ]
Re:SPI: The serial peripheral interface [video]
by MisterTea on Monday November 22, 2021 @02:10PM
(#29310389)
Chip selects are optional. You can daily chain multiple spi devices and push the data out in a contiguous block. All the chip selects are tied together and only one cs line is used from the cpu.
Re:SPI: The serial peripheral interface [video]
by duskwuff on Monday November 22, 2021 @04:49PM
(#29311947)
> You can daily chain multiple spi devices
For some simple SPI devices, sometimes. Many SPI devices, especially more complex ones, won't let you shift data through the device without attempting to interpret it.
Re:SPI: The serial peripheral interface [video]
by monocasa on Monday November 22, 2021 @04:56PM
(#29312015)
Or will shift out something completely different, like the response to the last command they received, just FFs so you can three wire in the general case, or even just garbage.
Re:SPI: The serial peripheral interface [video]
by flyingcircus3 on Monday November 22, 2021 @04:56PM
(#29312008)
Flash memory devices use the CS line as an integral part of the protocol. It is definitely not optional.
Re:SPI: The serial peripheral interface [video]
by jstanley on Monday November 22, 2021 @02:11PM
(#29310411)
If that counts then you can do exactly the same thing with a UART-based protocol, no?
Re:SPI: The serial peripheral interface [video]
by monocasa on Monday November 22, 2021 @04:18PM
(#29311671)
Do you know of any uart hardware that'll only latch on /SS active?
Re:SPI: The serial peripheral interface [video]
by jstanley on Monday November 22, 2021 @04:59PM
(#29312033)
No, I don't, but at the point where you're integrating a UART, adding a couple of logic gates on the data input doesn't seem too much of a stretch.
I'm not saying using UARTs instead of SPI is a good idea! I'm just saying the reason that it's not a good idea is not because UART's don't have /SS inputs.