Vitaliy wrote: > So how would you change the baud rate, at run-time? I wouldn't unless I really needed to. In the 100 or so PIC projects I've done, not a single one had to deal with a variable baud rate. I'm not saying it doesn't happen, but it's definitely the exception. If I really had to, I might have a table of baud rate generator values given the IDs of the few selected baud rates the unit has to support (like if is was DIP-switch selectable, for example). If it's a complex enough project and I've got divide routines in there already anyway or program memory isn't a issue, it might be easier to just do out the divide. Again, this would have to be decided on a case by case basis since it comes up so rarely. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist