Shop OBEX P1 Docs P2 Docs Learn Events
Odd baud rate problem... — Parallax Forums

Odd baud rate problem...

ArchiverArchiver Posts: 46,084
edited 2000-12-29 19:56 in General Discussion
Here's the setup:

BS2-SX on a "standard" carrier board with the DB9 connector.

I've got the software in the stamp set up to send an "A" as part of it's
init sequence.

The line is:

SEROUT 16, 16390, [noparse][[/noparse]65]

According to the manual, 16390 is 38400, 8, N, 1 in "inverted" mode which is
what is required when using the DB9 connector on the carrier board.
Unfortunately, all I get is a lower case "u" with a pair of dots over it
(umlauts?) instead of the letter "A" as I expect. I've been pulling my
hair out most of the day trying to figure this out. I'm assuming a related
problem is preventing the board from receiving "normal" serial input as the
device I have connected doesn't respond according to the values I'm sending.
(the connected device is ok. If I send values right from the stamp it works
flawlessly)

Thanks for your time!

Gene Buckle
geneb@d...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-12-28 22:35
    Hi Gene,

    You should go to the Parallax site and download the addendum for the BS2-SX
    (version 1.5). You'll find lots of important informations to use the SX, and
    that will help to keep your hair... :-)
    One of the differences between the BS2 and the BS2-SX is the baudmode value.
    For the SX, you should replace 16390 with 16429.
    I experienced the same problem a few months ago, with an LCD display, but
    with the good values, it's OK.

    Hope this helps.

    Phil.

    Original Message
    From: Gene Buckle <geneb@d...>
    Subject: [noparse][[/noparse]basicstamps] Odd baud rate problem...


    > Here's the setup:
    >
    > BS2-SX on a "standard" carrier board with the DB9 connector.
    >
    > I've got the software in the stamp set up to send an "A" as part of it's
    > init sequence.
    >
    > The line is:
    >
    > SEROUT 16, 16390, [noparse][[/noparse]65]
    >
    > According to the manual, 16390 is 38400, 8, N, 1 in "inverted" mode which
    is
    > what is required when using the DB9 connector on the carrier board.
    > Unfortunately, all I get is a lower case "u" with a pair of dots over it
    > (umlauts?) instead of the letter "A" as I expect. I've been pulling my
    > hair out most of the day trying to figure this out. I'm assuming a
    related
    > problem is preventing the board from receiving "normal" serial input as
    the
    > device I have connected doesn't respond according to the values I'm
    sending.
    > (the connected device is ok. If I send values right from the stamp it
    works
    > flawlessly)
    >
    > Thanks for your time!
    >
    > Gene Buckle
    > geneb@d...
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-12-29 06:56
    Phil, thanks for the help! I missed your reply and had to dig it out
    of the egroups archives. [noparse]:)[/noparse] I looked on the parallax page but didn't
    see it under the documentation/software downloads. Is it hidden
    somewhere?

    Thanks!

    g.

    --- In basicstamps@egroups.com, "Philippe Derenne" <derennep@s...>
    wrote:
    > Hi Gene,
    >
    > You should go to the Parallax site and download the addendum for
    the BS2-SX
    > (version 1.5). You'll find lots of important informations to use
    the SX, and
    > that will help to keep your hair... :-)
    > One of the differences between the BS2 and the BS2-SX is the
    baudmode value.
    > For the SX, you should replace 16390 with 16429.
    > I experienced the same problem a few months ago, with an LCD
    display, but
    > with the good values, it's OK.
    >
    > Hope this helps.
    >
    > Phil.
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-12-29 07:32
    >Phil, thanks for the help! I missed your reply and had to dig it out
    >of the egroups archives. [noparse]:)[/noparse] I looked on the parallax page but didn't
    >see it under the documentation/software downloads. Is it hidden
    >somewhere?
    > > You should go to the Parallax site and download the addendum for
    >the BS2-SX
    > > (version 1.5).

    The addendum is no longer there, because all that material has been
    rolled into the new version 2.0 BASIC Stamp manual:
    http://www.parallaxinc.com/html_files/downloads/download.htm
    (2 meg download) The baud rate tables for the BS1, BS2, BS2e, BS2sx
    and the new BS2p are all there together on page 277 (279 in acrobat).

    You can also find a baud rate table for the BS2SX in the FAQ at Al
    William's site:
    http://www.al-williams.com/wd5gnr/stampfaq.htm

    -- Tracy
  • ArchiverArchiver Posts: 46,084
    edited 2000-12-29 07:48
    > > > You should go to the Parallax site and download the addendum for
    > >the BS2-SX
    > > > (version 1.5).
    >
    > The addendum is no longer there, because all that material has been
    > rolled into the new version 2.0 BASIC Stamp manual:
    > http://www.parallaxinc.com/html_files/downloads/download.htm
    > (2 meg download) The baud rate tables for the BS1, BS2, BS2e, BS2sx
    > and the new BS2p are all there together on page 277 (279 in acrobat).
    >
    > You can also find a baud rate table for the BS2SX in the FAQ at Al
    > William's site:
    > http://www.al-williams.com/wd5gnr/stampfaq.htm

    Thanks Tracy - now if I can just get around the 4800 baud limitation.... [noparse]:)[/noparse]

    g.
  • ArchiverArchiver Posts: 46,084
    edited 2000-12-29 19:56
    Hi Gene,

    I've seen that the addendum is no more on the site. Sorry, I haven't been
    there for a few weeks...
    Let me know if you can't find the baudrate table, I'll send you the addendum
    (PDF document).

    Happy New Year !

    Phil.


    Original Message
    From: <geneb@d...>
    To: <basicstamps@egroups.com>
    Sent: Friday, December 29, 2000 7:56 AM
    Subject: [noparse][[/noparse]basicstamps] Re: Odd baud rate problem...


    > Phil, thanks for the help! I missed your reply and had to dig it out
    > of the egroups archives. [noparse]:)[/noparse] I looked on the parallax page but didn't
    > see it under the documentation/software downloads. Is it hidden
    > somewhere?
    >
    > Thanks!
    >
    > g.
    >
    > --- In basicstamps@egroups.com, "Philippe Derenne" <derennep@s...>
    > wrote:
    > > Hi Gene,
    > >
    > > You should go to the Parallax site and download the addendum for
    > the BS2-SX
    > > (version 1.5). You'll find lots of important informations to use
    > the SX, and
    > > that will help to keep your hair... :-)
    > > One of the differences between the BS2 and the BS2-SX is the
    > baudmode value.
    > > For the SX, you should replace 16390 with 16429.
    > > I experienced the same problem a few months ago, with an LCD
    > display, but
    > > with the good values, it's OK.
    > >
    > > Hope this helps.
    > >
    > > Phil.
    > >
    >
    >
    >
    >
    >
    >
Sign In or Register to comment.