> If you have MS Excel, why not just use the Excel spreadsheet for > calculating SPBRG values I submitted last week? Because then you still just end up with hard coded constants in your code, even if they are more likely to be right. In my opinion, the best answer is to have the assembler calculate the SPBRG value from the oscillator frequency and the desired baud rate. This is what my UART_BAUD macro does, in addition to some error checking and handling of different PIC UART variants. The UART_BAUD macro is available in STD.INS.ASPIC at http://www.embedinc.com/pic. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads