I am using Tony Keubek's initialization code http://www.piclist.com/techref/microchip/16f877/snipp.htm and building off of that. Here is my modified version of his code. ; *********************************************************************** ; ; INIT_UART - Initializes UART ; enables recevier and transmitter ; Make sure to be at bank0 INIT_UART ; make sure pins are setup before calling this routine ; TRISC:6 and TRISC:7 must be set ( as for output, but operates as input/output ) ; furthermore its advised that interrupts are disabled during this routine =09 ; setup baud rate BCF INTCON,7 MOVLW SPBRG ; get address for serial baud reg MOVWF FSR ; setup fsr MOVLW UBAUD_19200 ; MOVWF INDF ; and store it ; enable transmitter MOVLW TXSTA ; get address for serial enable reg MOVWF FSR ; setup fsr MOVLW (1<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? > >Charles K Roberts II >ORNL-SNS Project > >-- >http://www.piclist.com hint: PICList Posts must start with ONE topic: >[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads