I've implemented an interrupt driven UART handler for a Sharp LH79524 and it seems to be working OK. When I receive a message from my host system then I transmit one back. All seems fine on that front and the two will chat away for hours without any bad packets. If I unplug the comms cable then I get a timeout reported but when I plug it back in comms is restored the next time a message is received.
However, if I short Tx to Rx then the system fails to recover and keeps on reporting timeouts. Is this something to do with how the Sharp UART handles hardware errors and is there anyway of firstly detecting the problem and secondly fixing it? I've assumed (risky I know) that a break in the line is conceptually the same as a short so I can't see why ythe UART will recover from one but not the other.
Many thanks in advance.