Martin, I've been learning for 84 years.· It's just a bit harder than it was 40 years ago
I'd like to make First Class Junior Apprentice Propeller guru before I shuffle off this mortal coil.
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, 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.
Comments
I'd like to make First Class Junior Apprentice Propeller guru before I shuffle off this mortal coil.
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
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
·