Perhaps you just need to clear the serial port enable bit SPEN, can't remember the exact register it is located on but it should say so in the datasheet. The problem could be because you are receiving invalid data and causing a framing error or overrun when connecting up, so you just need to clear it by disabling and then re-enabling the UART.
Matthew
Bookmarks