> Hi, > > Does anyone have any ideas for implementing auto baud rate detection > on the PIC16C73. I don't want any switches hanging off my device and > would like it to detect the baud rate anything between 1200 and 57600. > > I suppose I could just measure the width of the start bit & calculate > the appropriate baud rate. But this will not work when changing the > baud rate without powering the device do. > This is easily done if you know what your first byte of data will look like. For example, if you can force the first byte of all strings to be odd, you can simply measure the start bit width to determine your bit widths. Recalculate bit width at the beginning of each string - this allows some other cost saving measures as well. If you don't know anything about your incoming data, things will be much more difficult. Good luck -mike mfahrion@bb-elec.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Mike Fahrion mfahrion@bb-elec.com http://www.bb-elec.com/ B&B Electronics Mfg Co ph.(815) 433-5100 ext.215 fax (815) 434-7094 707 Dayton Road PO Box 1040 Ottawa IL 61350 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-