Shop OBEX P1 Docs P2 Docs Learn Events
BS2e baud value code - 19200 — Parallax Forums

BS2e baud value code - 19200

blippincottblippincott Posts: 4
edited 2008-08-29 04:14 in BASIC Stamp
I have a goofy one here. hop.gif I have a Matrix Orbital LCD display with a serial controller. It is default set baud at 19200. The uProject software the company provides has a bug: the baud rate setting command does not work. I am trying to communicate with it using a BS2e. How do I get the propper baud value, in hex or otherwise, to set the constant value for the baud to 19200 in my code? If I can communicate with it, I can reset its baud to a more conservative 9600 like all the rest of my Scott Edwards Serial Backpacks. Thanks.
Brian

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I know just enough about electronics to be a
danger to myself and others."
150 x 84 - 28K

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-08-29 04:14
    baudmodes (they are in PBASIC HelP) --

    On the BS2, BS2e, BS2sx, BS2p, and BS2pe, serial communication is very flexible. The Baudmode argument for SERIN accepts a 16-bit value that determines its characteristics: 1-stop bit, 8-data bits/no-parity or 7-data bits/even-parity and virtually any speed from as low as 300 baud to greater than 100K baud (depending on the BASIC Stamp). The information below shows how Baudmode is calculated and show common baud modes for standard serial baud rates.

    Baudmode Calculation:
    1. Determine the bit period (bits 0 - 11)
      • BS2, BS2e, and BS2pe = INT(1,000,000
Sign In or Register to comment.