Shop OBEX P1 Docs P2 Docs Learn Events
how to recieve serial data on the stamp serial port — Parallax Forums

how to recieve serial data on the stamp serial port

NiallNiall Posts: 7
edited 2009-02-12 22:49 in BASIC Stamp
I am using the serial port on the stamp to communicate with a modem, how can i revieve data from the modem using the recieve pin on the stamp serial port. From what i can make out, the serin command is only used with i/o ports. Please help,

Comments

  • UghaUgha Posts: 543
    edited 2009-02-12 13:03
    Check out the helpfile on SERIN... if you set it to pin 16 it'll receive on the dedicated serial port (the programming port).

    Just make sure you've got your wiring right and voltage levels within specs!
  • Craig EidCraig Eid Posts: 106
    edited 2009-02-12 22:49
    Read the manual to determine the transmission protocol for your modem and·read the Parallax documentation on SERIN/SEROUT.

    Check to see if your modem is operating at standard RS232 voltage levels rather than TTL levels. If it is operating at TTL levels you can use any I/O pin on the Stamp to receive data; if not, you will need to use pin 16 as your receive port.

    The Stamp will echo any command sent to port 16 using SERIN and a typical modem will also echo commands and you will need to account for this in your code.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Craig Eid

    www.TriadRD.com
Sign In or Register to comment.