Shop OBEX P1 Docs P2 Docs Learn Events
SERIN and SEROUT oh my! — Parallax Forums

SERIN and SEROUT oh my!

Lithium_fun!Lithium_fun! Posts: 18
edited 2007-09-06 14:44 in BASIC Stamp
I'm relatively new to programming, and I can't understand serial communications for the life of me. Could someone please tell me how serial works in PBASIC, and put it into terms that the unenlightened can understand? I would be forever grateful.

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-09-03 04:54
    As you've read the entries on SERIN and SEROUT in PBASIC Help, perhaps you could be (more) specific?
  • D FaustD Faust Posts: 608
    edited 2007-09-03 12:41
    Try this: http://en.wikipedia.org/wiki/Serial_communications

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
    LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
    ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
    END 
    
  • TechnoRobboTechnoRobbo Posts: 323
    edited 2007-09-03 14:09
    It's the computer equivalent of morse code(but 1's and zeros instead of dots and dashes), one side is sending(serout) one side is receiving(serin) The receiving side really doesn't know when the sending side is going to send so both side must be paying attention or data is lost (ay, there's the rub).

    Everyone and their sister Ethel has come up with scheme to make sure that data is sent at the right time - I like the "!" exclamation point - it says "hey, the data starts·here!"

    Careful when sending that you don't confuse ASCII (text letters and numbers) with binary (real numbers).

    hope that explanation·easy to undestand, and I apologize if your sister's name is Ethel.

    ·

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Have Fun


    TR

    Post Edited (TechnoRobbo) : 9/3/2007 2:25:25 PM GMT
  • Kevin WoodKevin Wood Posts: 1,266
    edited 2007-09-03 14:50
    >>> and their sister Ethel has come up with scheme to make sure that data is sent at the right time <<<

    Ethelnet?
  • Lithium_fun!Lithium_fun! Posts: 18
    edited 2007-09-03 15:40
    Thank you for all the responses! The morse code thing helped out a lot.
    And I have read the PBASIC manual, but I didn't understand everything there so I just ended up more confused than I already was.
  • JMLStamp2pJMLStamp2p Posts: 259
    edited 2007-09-06 14:44
    Hello,
    I am writing serial code to communicate with Visual Basic and a BS2 and maybe "simple minded" enough to help you. I have got alot of help from a gentleman in this forum on "serial code" and promised to pass it along , so here we go :>)

    I can help you better and quicker through my regular e-mail address,
    JMLStamp2p@aol.com

    Tell me exactly what your trying to do and what you understand at this point.
    JMLStamp2p
Sign In or Register to comment.