On Tue, 14 Aug 2001, Alan B. Pearce wrote: > >> 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. > > >I know you say you've tested this, but I still find this very hard to > >believe. Did you try completely disabling the UART, changing the baud > rate, > >then enabling the UART again? I have a feeling something else was going on > >in your test that made it appear as if the processor had to be reset to > >change baud rate. > > >I don't have time to test this now myself, but this is just too bizarre for > >me to believe without seeing it myself where I can carefully control the > >conditions to my own satisfaction. > > > I do not believe it either. Have a look in the archive for some code that > someone posted where they change the baud rate on the fly, using the A/D > converter and a pot as the input method to get the new baud rate. If there > really are problems like you describe, then this should show you how to > overcome them. > don't you remember the whole subject name ? Thanks, Vasile -- 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