On Mon, 13 Aug 2001, Olin Lathrop wrote: > > Olin, if you remember, a while ago I've asked the same question. My > > purpose was an autobaud asynchronous routine. This sort of routines have > > usual a calibration character. Well, I've done it without this, but I need > > a reset. I'm still search for good software reset. Else I can't switch > > from 115200 bauds to one step backward ( measured in standard baud rate ). > > This could be a good reason, or do you have another method ? > > You don't need to reset the processor to change the baud rate, just change > the SPBRG register and possibly the BRGH bit in TXSTA. > Its's not enough. Will work only first time after a reset. I've tested. Next time when will come a character with other baud rate, the receiver it's still stick on the old baudrate and a frame error will occur. Before setting a new value for SPBRG and BRGH, a reset must be produced and new values could be written in those register. Vasile -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu