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.

TMS320F28379D: How to Know SPI is complete?

Part Number: TMS320F28379D

Hello,

I am sending out data as Master and how to know if SPI  has completed transmitting the data? 

I have checked the function SPIisBusy() but that tells you if have 0 words in the SPI FIFO and not SPIDAT (correct me if i am wrong).

I am using FIFO so I don think I can use Interrupt flag in Status register.

Any other way? 

I am not using interrupts.

Thank you

Varun

  • Varun,

    In non-FIFO mode, SPISTS.INT_FLAG bit can be used to check whether SPI has completed sending (or) receiving the last bit and is ready to be serviced.

    In FIFO mode, SPISTS. SPIFFTX.TXFFST bit can be used to check whether SPI has completed sending all the data in Transmit FIFO.

    Regards,
    Manoj