Shop OBEX P1 Docs P2 Docs Learn Events
Need help on SERIN — Parallax Forums

Need help on SERIN

ArchiverArchiver Posts: 46,084
edited 2003-11-20 16:18 in General Discussion
Hi guys i am a newbie here , i need some help in programming BS2.
How to use a SERIN command , i am not too sure.
How do i acquire data from a hyper terminal and send it to my stamp?
can u all give me some sample programs?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-11-20 15:10
    This StampWorks experiment might be helpful:

    http://www.parallax.com/dl/docs/books/sw/exp/31.pdf

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: SkYbOL [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=inzAlO3lCjkK7y-wH8GGn7_NsvBUrTQ2UW-BI2kCCJU5tEytYAksjscYGFoNKo2hqob1SEGU_bG_Tw]skybol1@y...[/url
    Sent: Wednesday, November 19, 2003 8:59 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Need help on SERIN


    Hi guys i am a newbie here , i need some help in programming BS2. How to
    use a SERIN command , i am not too sure. How do i acquire data from a
    hyper terminal and send it to my stamp?
    can u all give me some sample programs?




    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-20 16:18
    If using Hyperterm, and the BOE (Board Of Education),
    and a BS2:

    MyBaud VAR 86 + 16384 ' 9600 buad + Inversion val
    MyData VAR WORD
    I VAR WORD

    MAIN:
    FOR I = 1 to 100
    SERIN 16, MyBaud, [noparse][[/noparse]DEC MyData]
    SEROUT 16, MyBaud, [noparse][[/noparse]DEC MyData, 13]
    NEXT
    GOTO MAIN

    ' Now, in hyperterm enter a value (like "10")
    ' followed by 'enter' key. The BS2 should echo
    ' back your data.
    '
    ' The "DEC MyData" expects to recieve the ascii
    ' characters for a number, and converts them into
    ' the WORD value, and stores them in MyData.
    ' It waits for the end of the number, which the
    ' 'enter' key (or a "." character) gives it.


    --- In basicstamps@yahoogroups.com, "SkYbOL" <skybol1@y...> wrote:
    > Hi guys i am a newbie here , i need some help in programming BS2.
    > How to use a SERIN command , i am not too sure.
    > How do i acquire data from a hyper terminal and send it to my
    stamp?
    > can u all give me some sample programs?
Sign In or Register to comment.