Hi,

I notice that there have been several posts around USART and its failing after a few operations, I have had this problem and a resolution for me was found in a document from microchip entitled "USART"

http://ww1.microchip.com/downloads/e...eDoc/usart.pdf

It is suggested that both usart pins are set as inputs RX and TX. It certainly cured all the strange behaviour I was experiencing.... and I thought the microchip document very usefull and concise.

However the Datasheet for the 16F628A reveals this information.....

TRISB<1> bit needs to be set and TRISB<2> bit
cleared in order to configure pins RB2/TX/CK
and RB1/RX/DT as the Universal Synchronous
Asynchronous Receiver Transmitter pins.

right this minute I am just pleased to get consistent results from the hardware port.