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.

Linux/AM5728: question about MCSPI

Part Number: AM5728

Tool/software: Linux

I notice that there is one warning for continuous transfer mode as followings(on TRM page 5940): To avoid data corruption, SPIEN polarity and SPICLK phase and SPICLK polarity must not be modified when the SPIEN[x] signal is activated.

Our project use one spi device which has following timing sequence. The bit length of address and data is different, And for SPI - READ case, the spiclk phase for data is different from address.

For this case, how to configure the MCSPI? It's very helpful if you can give us some pseudocode to show how to config.

Thanks!


  • Hi,

    From these diagrams I don't see any problem. As I read them, you want to shift data out on MOSI on the rising edge of SCK, and sample input data on MISO on the falling edge of SCK. This is exactly what Mode 1 does (Polarity =0 and Phase = 1). See Table 24-291 and Figure 24-75 in the AM572x TRM Rev. J for details.