Shop OBEX P1 Docs P2 Docs Learn Events
serial lcd baud question — Parallax Forums

serial lcd baud question

carl vianellicarl vianelli Posts: 11
edited 2013-12-23 00:13 in Learn with BlocklyProp
hello everyone,
I am just curious of the baud number in the BS2 code.
32 is for 19200 baud rate.
84 is for 9600 baud rate..
I don't know what the number is for 2400 baud rate.
but anyway,my question is where these numbers come from?
Is it a math thing? or is it just a set number?
I have been looking at different literature and I can't find a reason for these numbers.
also, isn't the 19200 baud rate the best to use? or is there benefit for slower baud rates?
thanks for any explanations...... joe

Comments

  • davejamesdavejames Posts: 4,047
    edited 2013-12-21 22:33
    Hello Carl,

    Yeah, the baudmode subject is a bit confusing. It basically defines the data transfer rate.

    If you look up the SERIN command in the reference manual or the Stamp IDE help, you'll find the full description.

    Good success!
  • Beau SchwabeBeau Schwabe Posts: 6,563
    edited 2013-12-21 22:40
    The value depends on what BS2 you are using...

    here is a table to calculate the baud, parity, and polarity
    [code]
    Baudmode Calculation

    Determine the bit period (bits 0 - 11)
    BS2, BS2e, and BS2pe = INT(1,000,000
  • carl vianellicarl vianelli Posts: 11
    edited 2013-12-21 23:55
    thank you very much,davejames and beau schwabe!
    I didn't think to look in the reference manual,I was trying to find info on the devices data sheets.
    I really like the baudmode calculation, I thought there was some kind of math involved, of course.
    thank you both again!!
  • carl vianellicarl vianelli Posts: 11
    edited 2013-12-22 00:01
    I don't know how to mark a "solved" on the original post,sorry.
  • davejamesdavejames Posts: 4,047
    edited 2013-12-22 14:19
    I don't know how to mark a "solved" on the original post,sorry.

    For future reference, open the original post in advanced mode and change the prefix selection to "solved".

    I've done this for you.

    :smile:
  • carl vianellicarl vianelli Posts: 11
    edited 2013-12-23 00:13
    thanks,davejames
Sign In or Register to comment.