At 05:00 AM 5/2/00 -0400, James wrote: >Has anyone ever tried to transmit/receive at different >baudrates...basically changing baudrates between pieces of data? > >I'm having problems and basically have narrowed it down to the receive >module on the PIC. I'm using a 16c74a which has a double buffer in the >receive module. > >Does anyone know what happens to the receive module when baud rates are >changed (i.e. changing the SPBRG). Yes. Maybe. I'm not sure. The PIC 16c74 and 16c74A have a silicon bug that causes receive errors when the BRGH bit is HI (divide 16). However, I do NOT know what happens if you change just the SPBRG register but leave BRGH alone (and set LO). I'm assuming that you are not attempting to receive data at the instant you change baud rates. What you may want to do is make sure that you have pulled all the data from the receive fifo before you change baud rates. Then change the baud rate and flush the receive fifo in case you did get garbage. Note: just read the receive register 3 times to flush the fifo. dwayne Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 16 years of Engineering Innovation (1984 - 2000) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email.