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.

TMS320F280039C-Q1: Polarity and Phase Setting for SPI Module

Part Number: TMS320F280039C-Q1
Other Parts Discussed in Thread: TCAN4550

Tool/software:

Hello, TI engineers.

Is TI's polarity and phase of SPI module different from other companies?

First, this is the introduction of the 280039C technical manual on polarity and phase with the SPI module.

Second, this is the requirement of TCAN4550 for SPI polarity and phase Settings .It requires rising edge input sampling and falling edge output data. Corresponding to 280039 is the rising edge output data, the falling edge sampling. So I set POLARITY = 0, PHASE = 0, and it would communicate normally, which was also what I expected.

Finally, the AT25128/126 used in the official routine (spi_ex6_eeprom) requires either mode 0 or mode 3 for polarity and phase. The other FLash I use also requires mode 0 or mode 3 for polarity and phase, and gives instructions for sampling data on the rising edge and output data on the falling edge. According to this requirement, 280039 is POLARITY = 0,PHASE = 0, but in spi_ex6_eeprom is POLARITY = 0,PHASE = 1. When POLARITY = 0 and PHASE = 0 are found in the actual test, communication fails; when POLARITY = 0 and PHASE = 1 are found, communication succeeds.

Is this because TI's internal protocols are consistent and differ from SPI protocols of other companies' products?

  • Hi Zhen,

    Apologies for the delay due to the U.S. Holidays. Your observations are correct that what TI C2000 refers to for POL and PHA is different than some other companies' SPI modules, so it is important to match the timing diagrams as opposed to the table alone.

    Best Regards,

    Aishwarya