Dumitru Stama wrote: > I have been using rs232 without any handshake but calculations of > spbrg were my first mistake. I made a simple php calculator and this > is what i got for your 13.5MHz frequency : Even better is to let the assembler do the computation at assembly time from more human-relevant constants in your source code. This is what my UART_BAUD macro in STD.INS.ASPIC at http://www.embedinc.com/pic does. You previously define the oscillator frequency with FREQ_OSC, you pass the desired baud rate to the macro, and it computes the UART setup for you automatically. It even gives you a warning when the error gets to 1/4 bit time at the last bit, and a error if it gets to 1/2 bit time. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist