how to detect baud rate of rs-232

Status
Not open for further replies.

accura

Newbie level 6
Joined
Apr 21, 2002
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
29
detect baudrate

I saw Jolt PIC18F Bootloader can automatically detect the baud rate of rs-232. Do you have any idea how to detect this ?


Thank you very much
 

rs232 automatic baud rate detection

Hi accura

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...

Greets
 

detect baud rate

thank you very much
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…