Shop OBEX P1 Docs P2 Docs Learn Events
Propeller to BS2E - Page 2 — Parallax Forums

Propeller to BS2E

2»

Comments

  • NewzedNewzed Posts: 2,503
    edited 2006-08-21 21:01
    Martin, I've been learning for 84 years.· It's just a bit harder than it was 40 years agoyeah.gif
    I'd like to make First Class Junior Apprentice Propeller guru before I shuffle off this mortal coil.

    Sid
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2006-08-21 21:10
    Sid,
    If my students could do what you are doing, I'd be content [noparse]:)[/noparse] I think too often how 'easily they should pick this up', but don't all too often.

    -Martin

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Martin Hebel
    Southern Illinois University Carbondale - Electronic Systems Technologies

    Personal Links with plenty of BASIC Stamp info
    StampPlot - Graphical Data Acquisition and Control
  • NewzedNewzed Posts: 2,503
    edited 2006-08-22 23:14
    Martin, I decided to write a separate method for receiving the time from the Stamp because of the special formatting:

    PUB recDatag·········· 'For receiving time from Stamp
    · x := 0
    · text.str(string(12,4,13,"Time is :· "))
    · repeat while byteval<>10
    ··· x := x + 1··
    ··· Byteval := BS2.Serin_Char(1,9600,BS2#NInv,8)
    ··· text.out(Byteval)
    ····· if x == 2 or x == 4
    ······· text.str(string(":"))
    ····· elseif x == 6
    ········ waitcnt(wait*3 + cnt)·············· 'wait CON clkfreq
    ········ start1

    This cleans things up a bit.· "PUB recdata" is now just used for receiving strings from the Stamp
    sent in response to a command received from the Prop.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Do you have a Stamp Tester yet?
    http://hometown.aol.com/newzed/index.html

    ·
Sign In or Register to comment.