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.

F2812 SPI interface to SSC



Hi Experts,

I am intending to use F2812 SPI to interface to SSC peripheral.  Seems like the SSC data line is a bi-directional bus while SPI has two separate data line SIMO and MOSI.  Thus, to make this interface works, i hope we can turn off the SIMO (tri-state) after i finish transmitting the command word.  Also, the CS needs to stay low between command word and the data response word.  Using FIFO mode, i think we can keep the CS low, but not sure how to tri-state SIMO.

can you please shine some lights into this?

Thanks,

Henry

  • Henry,

    Unfortunately the F281x SPI (Type 0) does not have the three wire mode that was added specifically for cases like this. if you are not limited to the F2812, i would investigate using another device with at least SPI Type 1 on it.  Check out the Peripheral Selection Guide  to see which C2000 devices have SPI Type 1.

    If you are limited to using the F2812, you can achieve this functionality by switching the SIMO or SOMI pins to GPIO input mode depending on if you are transmitting or receiving. Is the F2812 the SPI master?

    Thanks,

    Mark