Shop OBEX P1 Docs P2 Docs Learn Events
Auto Baud Detection — Parallax Forums

Auto Baud Detection

SailerManSailerMan Posts: 337
edited 2009-01-26 14:30 in General Discussion
How does Auto Baud Detection work? I am thinking that the device waits for a known character and steps through the various baud rates until it discovers it. Am I right in my thinking? Is there any SX code for doing this?

Thanks for any help you can offer,
Eric

Comments

  • LeonLeon Posts: 7,620
    edited 2009-01-26 13:39
    That's the way it's often done. The UARTs in some chips can do it automatically.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • ChetChet Posts: 150
    edited 2009-01-26 14:30
    You can also measure the length of the start bit to determine the baud rate. I have used that approach some time ago and it worked well.

    Regards

    Chet
Sign In or Register to comment.