Well, other than your code being wrong, you could have the wrong settings on the PC terminal program. I wouldn't discount an error in your program though, that is where the problem is 9 times out of 10 when I have problems. Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams "Roberts II, Charles K." wrote: > I am trying to write a byte from the PIC to the PC on the USART. But > when I write a byte to TXREG the byte received at the PC is always > incorrect, and sometimes the PC reads two bytes. I am using a MAX232 to > do the level conversion and I am confident that the USART is set up > correctly. What are some possible causes for this? -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads