Thank's very much Imre ! Laci On Thu, 16 Aug 2001, dr. Imre Bartfai wrote: > Hi, > it is enough to clear the OERR (and maybe the FERR) bit. If all other > fails, turn reception off by clearing CREN, set the new baud rate, and > turn it on again. Be aware to empty the FIFO! > > I hope this helps. > Regards, > Imre > > > > +-----------------------------------------------------------------------+ > | The information transmitted is intended only for the person or entity | > | to which it is addressed and may contain confidential and/or | > | privileged material. Any review, retransmission, dissemination or | > | other use of, or taking of any action in reliance upon, this | > | information by persons or entities other than the intended recipient | > | is prohibited. If you received this in error, please contact the | > | sender and delete the material from any computer. | > +-----------------------------------------------------------------------+ > > On Tue, 14 Aug 2001, Vasile Surducan wrote: > > > 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 > > > > > > > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics