Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Most of the 'automatic' detection waits for a known character from the host
(e.g. a 'Space' or 'CR'). If you look at the binary code of 'Space', you will
see that you have a single '1' Bit. You can measure (timer) the length of
this '1' and set the baudrate to the calculated value. The next character
you receive will be received by your UART and you can check (framing,
evt. parity) if it was received correctly. If so - perfect you found the right
baudrate. If not - try again...