rs485 direction pin handling