I am configuring a RS485 two wire multidrop interface using the SCI port. My issue is control of the transceiver. There are no lines from the SCI to control the transceiver so I am wondering how other people solve this issue.
Currently I am using a GPIO to control the transceiver, but it is the disable of the transceiver that is the issue. When using the FIFO, the interrupt is based on the FIFO empty, but there is still a character being clocked out. So you cannot disable the transmitter in the FIFO interrupt when there are no more characters in the FIFO or to be transmitted, but there is still one character to go. The only way to know that the last character has been transmitted is to check SCICTL2.bit.TXEMPTY and I do not see anyway that I can redirect this to a GPIO pin. Obviously this has been solved before, but I cannot find it in the threads.
Thanks John