Two basic stamps interfacing
ShadowDragon
Posts: 51
Hi everyone, i would like to know how to have my two basic stamps talk to each other. I am trying t o use currently the serin and serout commands. If possible, could you please post some examples of code using these? i can use it to change er somthing to my own use.
Thank you
Thank you
Comments
http://www.parallax.com/dl/docs/cols/nv/vol3/col/nv81.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DTQ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
btw, the help section is where i found them, and i set it up as it said, but the two still didn't work.
thanx
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Recieve:
' {$STAMP BS2}
twit VAR Byte
INPUT 8
OUTPUT 1
gooot:
SERIN 8 \19200, 2400, Plabel, [noparse][[/noparse]twit]
GOTO gooot
Plabel:
OUT1=0
PAUSE 1000
OUT1=1
PAUSE 1000
GOTO gooot
Transmit:
' {$STAMP BS2}
twirl VAR Bit
OUTPUT 8
google:
twirl = 1
SEROUT 8, 2400, [noparse][[/noparse]twirl]
GOTO google
thanks.....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I watch how the moon sits in the sky on a dark night,
shining with the light from the sun,
The sun doesn't give light to the moon,
Assuming the moons gonna owe it one,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I watch how the moon sits in the sky on a dark night,
shining with the light from the sun,
The sun doesn't give light to the moon,
Assuming the moons gonna owe it one,
The baud parameter is NOT the baud rate value, you have to look it up, and it's different for difference types of basic stamps (BS2, BS2sx ect).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"A problem well defined, is a problem·half solved."
·
http://www.emesystems.com/BS2rs232.htm#Baudmode
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I watch how the moon sits in the sky on a dark night,
shining with the light from the sun,
The sun doesn't give light to the moon,
Assuming the moons gonna owe it one,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I watch how the moon sits in the sky on a dark night,
shining with the light from the sun,
The sun doesn't give light to the moon,
Assuming the moons gonna owe it one,
You would define your baud like this:
Baud······· CON······· T19K2 + Inverted
... then use it like this:
· SEROUT Spin, FCpin, Baud, [noparse][[/noparse]"Hello", CR]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I watch how the moon sits in the sky on a dark night,
shining with the light from the sun,
The sun doesn't give light to the moon,
Assuming the moons gonna owe it one,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I watch how the moon sits in the sky on a dark night,
shining with the light from the sun,
The sun doesn't give light to the moon,
Assuming the moons gonna owe it one,