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.

TMS570LC4357: Why does the SPI clock phase (CPHA) depart from industry-standard on the TMS570?

Part Number: TMS570LC4357

Posting this here in the hopes that it helps someone else. After spending a few days trying to figure out why SPI clock polarity 0 and phase 0, which I would call Mode 0, didn't work as expected.

Here's an example of what most people expect Mode 0 (CPOL=0, CPHA=0) to look like, from the TI CC26x0 TRM:

In this timing diagram, SSIn_Rx might more appropriately be called MISO, and SSIn_Tx would be called MOSI.

It seems that the TMS570 SPI implementation (mibSPI) has a strange idea of what phase 0 should be. Here's the same diagram from the TMS570LC4357:

Obviously, this won't work very reliably when talking to a "standard" Mode 0 SPI peripheral. What you might want is to change phase to a 1:

Hope that helps someone!