Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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
 

mr_ghz

Full Member level 5
Joined
Apr 1, 2002
Messages
289
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,298
Activity points
3,551
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
 

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 baud rate

thank you very much
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top