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.

Can the 4 spi's available in tm4c1294 be switched automatically ?

Hey I am using the tm4c1294 launchpad for my project.

I need to use all the 4 spi's in it. Is there a way I can send data on the fifo of all spi's without changing the spi's manually ? 

For now i have just used a simple for-loop with i = 4 indicating 4 spi's and it works. But is there a way i can write a code so it does that automatically ? 

  • Hello Hiten

    Please explain the concept of "switching manually and automatically"

    Regards
    Amit
  • Hello Amit,

    what i meant by manual switching between the 4 spi's is that I can use some logic in the code, so that data is sent on all 4 spi one after the other like a for loop or something.
    But my question was is there a way we can let the processor switch the spi's maybe by using uDMA or anything like that for better throughput.

    Thanks
  • Hello Hiten,

    Yes, you may use the DMA channels for each of the SPI's for Transmit and Receive data handling. However do note that the uDMA can transfer data to only one SSI at any given time as the uDMA is a shared resource on the device. Also there are priority between the channels. A channel which is lower number will gain more access time compared to a channel which has a higher number when both of them are present at the same time.

    Regards
    Amit