Half-duplex soft serial port implementation based on ECT