Shop OBEX P1 Docs P2 Docs Learn Events
Seting BS2 to 8 bits, 1 start, 1 stop, no parity — Parallax Forums

Seting BS2 to 8 bits, 1 start, 1 stop, no parity

Luis_PLuis_P Posts: 246
edited 2012-02-22 05:11 in BASIC Stamp
The title said it all. Do anybody knows how to set BS2 to 8 bits, 1 start, 1 stop, no parity? I have not clue.

Comments

  • davejamesdavejames Posts: 4,047
    edited 2012-02-20 16:34
    Luis_P wrote: »
    The title said it all. Do anybody knows how to set BS2 to 8 bits, 1 start, 1 stop, no parity? I have not clue.

    Hello Luis - I checked the BS programming manual under the SERIN section. There is information on how to set 1-stop bit, 8 data-bits w/no-parity, or 7-data bits w/even-parity.

    I see nothing that describes 1-start bit, 1-stop bit, 8-data bits w/no-parity.

    I'm sure one of the Basic Stamp wizards will chime in shortly.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2012-02-20 16:56
    Ahhh, yes... sweet, sweet 8-N-1.

    SERIN, SEROUT -- baudmode tables
    All choices include a start bit.
    They really take care of you around here, y'know.
  • davejamesdavejames Posts: 4,047
    edited 2012-02-20 17:40
    PJ Allen wrote: »
    All choices include a start bit.

    ...sigh - as always, you are correct Mr. Allen.

    For some reason I failed to remember the start bit. :innocent:
  • Luis_PLuis_P Posts: 246
    edited 2012-02-21 22:11
    PJ Allen wrote: »
    Ahhh, yes... sweet, sweet 8-N-1.

    SERIN, SEROUT -- baudmode tables
    All choices include a start bit.
    They really take care of you around here, y'know.

    Would be nice if you trought some example codes! gracias.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2012-02-22 05:11
    Luis_P wrote: »
    Would be nice if you trought some example codes! gracias.
    Will just any 8-N-1 baudmode be satisfactory?

    If you look in PBASIC Help, under both SERIN and SEROUT, there are tables listing baudmodes for 8-N-1 (8bits, no parity, 1 stop bit) for all of the BS2 variants.
    If you need help beyond that then you need to tell me, at minimum, which Stamp you are using and provide a link to the device with which you intend the Stamp to communicate.
Sign In or Register to comment.