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.

AM263P4: MCSPI toggle CS between words

Part Number: AM263P4

Tool/software:

I am using AM263P4 launchpad. My SPI peripheral requires a CS line toggle in between each 16bit word.

Currently, I am using DMA blocking mode and setting up 1 word transactions so that the CS line is toggled between each transaction.

Is there a more efficient way of doing this? Ideally, I would like to have 1 transaction with multiple 16 bit words, and CS toggled in between each word automatically.

Thanks for the help!

  • Hi Huang,

    Please refer mcspi_loopback_dma/interrupt examples. In any of these examples please configure dataSize to 16. And observe the CS line on Logic Analyzer, CS toggled in between each word automatically.

    For more details, please find the attached image.