> Hello guys, every program i wrote that uses the serial port crashes > the system if there are many characters arriving at the same time, or > the pic is doing another thing and not expecting serial data. Which system is crashing, the PIC or the PC? > So i just tried to disable usart port and enable when need, but did > not work too. Is it the correct aproach? How could I turn on/off 16F627 > serial port after its been setu? It sounds like you are missing flow control, this can either be done in software (in the protocol between the devices, or using a more "common" form of flow control) or in hardware (using the CTS, RTS lines). TTYL -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics