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.

TM4C123GH6PM: 32-bit transaction via SPI with DMA in ping-pong/scatter-gather modes

Part Number: TM4C123GH6PM

There are some discussions on the forum about 32-bit SPI transactions, but they are not suitable for me - I need continuous flow transfer through SPI (like I2S sound stream) with 32-bit data per one frame sync pulse. I tried a lot of variants but they didn't work. I can't use GPIO for control FS because CPU doesn't control SPI port - it's controlled by DMA.

I wonder if it possible at all or not?

  • Unfortunately the TM4C123 family does not support the advanced modes of SSI that are found on the newer TM4C129 parts. Those parts support variable frame sizes in advanced mode.

    I have not tried it, but you might look into using Peripheral Scatter-Gather mode of the uDMA with the first task being to send out the 32 bits on the SSI and the next task to toggle a GPIO pin. If the resulting pulse on the GPIO pin is too short, you might change the second task to start a timer pin toggle or another SSI transmission to generate a pulse of the required width.