Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
Assigning Sin to SERIN — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
BASIC Stamp
Assigning Sin to SERIN
niven
Posts:
1
2005-12-14 08:04
edited 2005-12-14 15:06
in
BASIC Stamp
I have a BS2 on a BoE. How can I assign the serial input (Sin) as the input for the SERIN function? I can only assign a pin number right now, otherwise my program won't compile.
Comments
Bruce Bates
Posts:
3,045
2005-12-14 10:44
edited 2005-12-14 10:44
niven -
Use pin port number 16 in your SERIN command and that should do it. Alternatively, if it's just a small amount of data, you can use DEBUGIN.
Regards,
Bruce Bates
Chris Savage
Parallax Engineering
Posts:
14,406
2005-12-14 15:06
edited 2005-12-14 15:06
Bear in mind that data on this line is always inverted, unlike the standard I/O pins.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Sign In
or
Register
to comment.
Comments
Use pin port number 16 in your SERIN command and that should do it. Alternatively, if it's just a small amount of data, you can use DEBUGIN.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com