This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Looking for 4 wire multi-master SPI reference design

Hello,

I am new to this forum.  I am currently working for a client and I am looking for a MSP430 SPI 4-wire multi-master reference design.  We are having issues with our SPI 4-wire multi-master design, and I was hoping someone out there was experience in this matter.  Any help would be appreciated.

Tom

 

  • Hello Tom,

    Working on similar application. If there are only two masters involved, then simply use one port of "master2" to drive STE of "master1", this will cause master1's clock to be an input and this way master2 can send. The reverse is true as well.

    I have not tried the above, but according to documentation is doable.

     

    God bless,

     


    Saul

  • I had similar thoughts.

    However something that is going through my mind is how to handle synchronisation issues. What happens if for example Master 2 tries to take control of the bus when Master 1 is using the bus?

    Potentially you could have both masters disconnecting each other from the bus, if this happens then who wins?

    Eventually I've ended up using I2C and SPI next to each other to get the best of both worlds. SPI is used for streaming large amounts of data, I2C is used for general communications. If a master wants to use the SPI bus, it asks the other masters for permission using I2C.

    So what if it's using another 2 wires, its much more flexible.

**Attention** This is a public forum