Shop OBEX P1 Docs P2 Docs Learn Events
Assigning Sin to SERIN — Parallax Forums

Assigning Sin to SERIN

nivenniven Posts: 1
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 BatesBruce Bates Posts: 3,045
    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 SavageChris Savage Parallax Engineering Posts: 14,406
    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.