One can utilize the bit in the UART status register bit 0, TX_BUSY bit. This read only bit is only active any time the transmitter is actively clocking out data and it should become inactive following the last stop bit of the last character. The combination of FIFO Empty Indicator and inactive TX_BUSY bit is the indication that the software can disable the RS485 transmitter.