cancel
Showing results for 
Search instead for 
Did you mean: 

How many slave devices can be connected in part STM32F303ZET6 using SPI interface? I am planning to connect directly 40 ADC (AD7719). Is it possible with the 4x SPI available? I am preferring CS mode.

KJ.4
Associate III
 
7 REPLIES 7
Foued_KH
ST Employee

Hello @KJ.4​ ,

In a configuration with two or more independent slaves, the master uses GPIO pins to manage the chip select lines for each slave.

The master must select one of the slaves individually by pulling low the GPIO connected to the slave NSS input.

Example: ( see RM0316 section 30.5.3 ) link.

0693W00000WLRjmQAH.png 

Also as solution, you can work with the 4 SPI instances ( 1,2,3 & 4).

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

S.Ma
Principal

Missing constrains to narrow down to the right options. ADC spi frequency, bus capacitance load and related bus length, are all the measurements synchronized? How many dma channels for how many spi?

What is "CS mode"?

If 8-bit, LSB-first, not-that-high-baudrate is OK, USARTs can be used as SPI masters, too.

JW

Thanks for the update Khalsi Foued.

Can I able to connect one MISO and SCLK line to 40 slaves?

Will there be any fanout issues?

I can see input capacitance of Slave is 10pf.

Is this one MISO and SCLK line have enough drive strength to drive 40 slaves?

Please advice on SCLK, MISO & MOSI connections.

KJ.4
Associate III

Hi Khalsi Foued, any update on this question?

KJ.4
Associate III

Can I able to connect one MISO and SCLK line to 40 slaves(AD7719)?

SPI Frequency is 307KHz

Chip select mode.

Can I able to connect one MISO and SCLK line to 40 slaves(AD7719)?