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.

TMS320F280049: INT_FLAG in SPISTS-register

Part Number: TMS320F280049

Hello, I configured SPI_A_Module with DMA (at this point only Tx) and module driven SPISTE and FIFO enabled.

If I start a new transmission, I want to confirm, that all data is output and so STE is inactive. I can check the FIFO-status, but there could be some data in the TXDATA register actually clocking out. So I tried to test the INT_FLAG in SPI_A_MODULE.SPISTS, but never saw it in '1'-state.

So wat's wrong or how can I guarantee that all data has left the SPI and STE is inactive?

Thanks!

  • SPISTS.INT_FLAG cannot be used in FIFO mode. You can use TXFFST and TXFFINT flag bits to get the status of TXFIFO buffer but that will not provide the status whether all the SPI TX FIFO contents are transmitted. Once SPI transmission is complete, SPISTE pin goes high. You can check the GPIO status of SPISTE pin. If the GPIO status is high, then SPI transmission is complete. If GPIO status (of SPISTE pin) is low, then transmission is not complete.

    Regards,

    Manoj