Skip to main content
SPraj.15
Associate II
November 27, 2018
Question

3-Wire and 4-Wire SPI interface

  • November 27, 2018
  • 1 reply
  • 2083 views

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

    This topic has been closed for replies.

    1 reply

    waclawek.jan
    Super User
    November 27, 2018

    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