On 5 Sep 97 at 8:47, Wolfgang Feller wrote: > Hello Fred, > > I use the 16C74 in a datalogger that send the measured data to a PC > via RS232. Here is the code fragment: > > > LIST P=16C74 > include > > clockrate equ .3686400 ;define clock rate here > baudrate equ .9600 ;define baud rate here > tim0 equ .48 > bdclk equ .24 > RESET_V EQU 0x0000 ; > Address of RESET Vector > > ;RS232 ************** > #define _tx PORTC,6 ; TXD UART > #define _rx PORTC,7 ; RXD UART > > > txregx equ 0x20 ;used as temp transmit register > rcregx equ 0x21 ;received char is saved here > > org RESET_V ; RESET vector location > RESET GOTO START ; > > START ; POWER_ON Reset (Beginning of > program) > > ; INIT UART > ********************************* > bsf STATUS, RP0 > movlw B'00100100' > movwf TXSTA Just curious here, do you have problems with BRGH = 1 ? Microchip data says - "Note: At the time of this printing, the asynchronous high speed mode (BRGH is set) may experience a high rate of receive errors. It is recommended to have the BRGH bit cleared. If you desire a higher baud rate than BRGH=0 can support, refer to the device errata for additional information." MikeS