Shop OBEX P1 Docs P2 Docs Learn Events
Help with communication please — Parallax Forums

Help with communication please

ArchiverArchiver Posts: 46,084
edited 2002-09-03 06:21 in General Discussion
Hello,

I have been trying to use the SERIN/SEROUT commands to communicate a
byte-size number between two stamps. Been using the "baudmode" #
16780 and stamps wired with "open-source" circuit (single
communication pin between uP's with this pin tied to VSS thru 1k ohm
resistor).

Not getting the same number thru to the reciever uP, most times
getting nothing thru at all. Any suggestions would help me out.

Thanks! -Brian Dalziel Milwaukee, WI USA

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-09-03 05:12
    Which chip are you using Brian?? I found out the hard way that the baudmode
    is different depending on what chip you are using. I went from the BS2IC to
    the BS2P40 and was chasing my tail until I noticed the difference..

    Mike B.

    Original Message
    From: "signaltech_99" <bdalziel@e...>
    To: <basicstamps@yahoogroups.com>
    Sent: Monday, September 02, 2002 6:58 PM
    Subject: [noparse][[/noparse]basicstamps] Help with communication please


    > Hello,
    >
    > I have been trying to use the SERIN/SEROUT commands to communicate a
    > byte-size number between two stamps. Been using the "baudmode" #
    > 16780 and stamps wired with "open-source" circuit (single
    > communication pin between uP's with this pin tied to VSS thru 1k ohm
    > resistor).
    >
    > Not getting the same number thru to the reciever uP, most times
    > getting nothing thru at all. Any suggestions would help me out.
    >
    > Thanks! -Brian Dalziel Milwaukee, WI USA
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-09-03 06:21
    Brian-

    Make sure your Stamps are connected ground<->ground.

    Make sure your receiving Stamp is looking for data when the
    transmitting Stamp is actually sending it. Sounds trivial, but it
    can be a challenge sometimes.

    Try simplifying your code to find some instance that works, then
    build upon that.

    Also, baud mode 16780 is not an open baud mode. 16780 + 32768 =
    49548 corresponds to 2400, 8 bit, no parity, inverted, open
    (source). However, 16780 should be working fine--even with your
    pulldown resistor in place--for your described one-way transmissions
    (with both states driven), so this probably isn't the problem.

    Suggestion: connect the Stamp I/O pins via ~100 ohm resistor until
    you get this sorted out. May save you some expensive damage by
    limiting the current that can flow between your Stamps.

    Regards,

    Steve
Sign In or Register to comment.