Do you have any RS-485 compliant termination selector which is controlled by one of the Digital output of the micro controller
Application would be RS-485 transceiver where the termination resistor requires a switch and it shall be software selectable.