cancel
Showing results for 
Search instead for 
Did you mean: 

Does SPI in slave mode threestate MISO on inactive NSS, or not?

Posted on May 17, 2017 at 23:22

This is a followup to

https://community.st.com/thread/40921-multi-slave-spi-using-stm32f7s&sharpcomment-157367

.

RM0385, requests MISO being set to open-drain when multiple slaves are connected. This indicates, that NSS set to the inactive state *does not* threestate MISO in STM32 SPI set to slave, as is the custom with SPI. This makes using multiple STM32 SPI slaves not practical.

0690X00000606sZQAQ.png

Other than this, I could not find any indication of MISO behaviour in this regard in the RM.

I also went to the respective datasheet and the graph indicates that MISO *does* threestate when NSS goes inactive:

0690X000006072SQAQ.png

The STM32F40x DS, in the same table, for the same parameter, the footnote clearly states that MISO is to be threestated (put to Hi-Z)

0690X00000606v6QAA.png

ST, please comment.

Jan Waclawek

null
1 ACCEPTED SOLUTION

Accepted Solutions
Petr Sladecek
ST Employee
Posted on May 18, 2017 at 13:03

Hello,

MISO signal output is under standard chip select control of NSS input when the SPI slave is enabled and configured at HW NSS mode with NSS output disabled (SPE=1, SSM=0 nad SSOE=0). This allows multi-slave star topology communication.

Best regards,

Petr

View solution in original post

1 REPLY 1
Petr Sladecek
ST Employee
Posted on May 18, 2017 at 13:03

Hello,

MISO signal output is under standard chip select control of NSS input when the SPI slave is enabled and configured at HW NSS mode with NSS output disabled (SPE=1, SSM=0 nad SSOE=0). This allows multi-slave star topology communication.

Best regards,

Petr