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.

TMS320F28388D: How to interrupt on completion of SCI transmission

Genius 3215 points

Part Number: TMS320F28388D

Tool/software:

Hi All,

My customer uses SCI for RS485.
It is used to switch between transmit and receive.
Therefore, when transmitting, the DE pin is set HIGH (transmit mode),
When transmission is complete, the DE pin is set LOW (receive mode)
However, the interrupt condition is met when data is taken from the transmit FIFO, so the DE pin goes LOW before transmission is complete.
Is there any way to interrupt at the completion of transmission?

Best regards,

ito

  • Hi Ito, 

    If I understand correctly, you are setting the DE pin low inside the interrupt? In that case, you could wait till the transmission completes and the FIFO is emptied before setting the pin. There is an SCI_isTransmitterBusy() API available for the same. Let me know if this resolves your query.

    Thanks,

    Arnav