cancel
Showing results for 
Search instead for 
Did you mean: 

3-Wire and 4-Wire SPI interface

SPraj.15
Associate II

Hello,

I have to use STM32F030C6 controller. it has only one SPI interface.

in my project i want to connect external flash memory and TFT DISPLAY both on single SPI with controller.

problem is TFT display is 3-wire SPI interface & flash memory is 4-wire SPI interface.

in 3-wire SPI generally MOSI pin is connected to MISO through 10K resistor.

So how to i configure single SPI of controller as both 3 and 4-wire SPI interface.

Thank you

1 REPLY 1

Options may be

  • connect to one of the devices through different pins and bit-bang the protocol
  • reconfigure the SPI between duplex and half-duplex always when you change the target device (you have to have separate chipselects anyway)
  • consider, whether you need to read from the display at all.

JW