2015-05-04 04:56 AM
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-spi2015-05-04 05:14 AM
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'' JW2015-05-04 07:15 AM
I've seen that, we've the choice then.
Thx for your answer.