Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How many devices can we have on SPI?

Status
Not open for further replies.

Daljeet12

Member level 4
Joined
Jun 16, 2018
Messages
78
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
648
Hi

Could any one help me please

How many slave devices can be connected to spi bus?
 

Hi,

Theretically infinite.

* each one needs a unique /CS signal
* you need to consider bus capacitance and dtive strength of each device....or use buffers, MUX, selectors....

Klaus
 

Also, you will be limited by the complexity in connection and routing that comes with increased number of slave devices. The traces too are going to.get longer as slave devices increase.
 

As others have said as many as you want but SPI doesn't scale that well since you (typically) need individual CS lines for each device. Though SPI GPIO expanders could be used to help address this.

I2C with its addressing scheme scales better. Two lines gets up to 128 devices (though also bus C limited).
 

I2C with its addressing scheme scales better. Two lines gets up to 128 devices (though also bus C limited).

I was under the impression that the number is 255 (256 with zero excluded).
 

I2C is again a separate topic. 127 is theoretical limit. Practically it depends on each device capacitance, speed of the Interface.
Is it a general question.
If it is question related to your design, you can post some design parameters like Max speed, devices etc
For SPI there is no defined standard like I2C, Protocol, number of lines, sampling points everything can be varied.
 

The read/write bit reduces the address to 7 bits.

I should have checked before posting. Thanks anyway
 

It depends on a number of slave select lines on the hardware. Example: If my SPI master has 4 slave select lines then we can connect 4 slaves normally.
 

Hi,

It depends on a number of slave select lines on the hardware. Example: If my SPI master has 4 slave select lines then we can connect 4 slaves normally.
I agree.

Or 16 (with additional master /SS line) --> and two HC138
or 15 without additional master /SS line --> and two HC138
or 8 with included ( in the 4) master /SS line --> one HC138

Klaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top