> Thank you, Ken, for the calculator, I tested the values with your Excel > spreadsheet and indeed the value is 25. But I think it wouldn't be such > a problem if the value is not so precise, because I think only the > error level would be greater, but the transmi Please give me a hint of > what is wrong. The code is: Why not figure this out in assembler so that you (and those helping you) can see exactly what it going on? Personally I think it's a waste of time trying to figure this out with a big unknown like the compiler between your code and the real code. You can also look at my QQQ_UART.ASPIC template module at http://www.embedinc.com/pic for a complete and known working UART handler that does interrupt driven I/O and has send and receive software FIFOs. ***************************************************************** 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