cancel
Showing results for 
Search instead for 
Did you mean: 

Do SPI pins ever float?

LMI2
Lead

When I used buffers between CPU and SPI peripherals I got problems. There were no Pull-ups.

Bare GPIO pins with pull ups work. So do SPI pins float between transfers?

CPU happens to be STM32H750/STM32F746 if it matters.

4 REPLIES 4

Yes, if you switch SPI off by clearing SPI_CR1.SPE.

JW

LMI2
Lead

If I use hal, I wonder what happens after each HAL_SPI_Transmit or HAL_SPI_TransmitReceive

Cube/HAL is open source, you can/should look it up yourself.

JW

TDK
Guru

SPI pins floating is typically not a problem since they are ignored when CS is inactive.

HAL disables the peripheral between transfers. But as jan said, no need to wonder, it's easy to check stuff like that.

You could enable pullups/downs if you don't want them to float.

If you feel a post has answered your question, please click "Accept as Solution".