cancel
Showing results for 
Search instead for 
Did you mean: 

Is the MOSI pin in high impedance during a SPI read operation?

darko
Associate
Posted on May 04, 2015 at 13:56

Hello,

My question is very simple. I'm wandering whether or not we can configure the MOSI/MISO pin as normal GPIO and set them in high impedance while a SPI communication is ongoing (just for clock generation for example). 

For example, if the MOSI and MISO pin are connected together and the master (the MCU) is performing a read SPI operation on a slave, could we configure the MOSI pin in high impedance? Or maybe it is already in high impedance at this time and it would be no problem?

Tanks for your help. 

#stm32-spi
2 REPLIES 2
Posted on May 04, 2015 at 14:14

Yes you can put the MOSI pin to GPIO-Input.

The SPI in STM32 has a native half-duplex mode, too. Read the reference manual, search for ''Configuring the SPI for half-duplex communication''

JW
darko
Associate
Posted on May 04, 2015 at 16:15

I've seen that, we've the choice then. 

Thx for your answer.