Shop OBEX P1 Docs P2 Docs Learn Events
how does basic stamp read data? — Parallax Forums

how does basic stamp read data?

hualalahualala Posts: 4
edited 2009-11-19 12:57 in BASIC Stamp
Hi,

i have wrote a C++ program that send data to basic stamp via serial port. I have a couple of variables so send to basic stamp. May i know how does basic stamp·recognise·the variables? thank in advance.

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2009-11-19 12:57
    You will write a program for the Stamp to receive the serial data sent by the C++ program. The Stamp can be programmed to accomodate various baud rates and data lengths. The command also allows conversion to ASCII, HEX, DEC, etc as data is received. Any received data can be assigned to variables in the Stamp.

    The implementation is straight-forward using specific commands ( SERIN ) but is not trivial since the Stamp has no data buffer and the capture of data must occur at the instant it is available at the input pin.

    There is considerable information in the Help files associated with the Editor which is free to download. I believe the current revision is 2.4.2.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
Sign In or Register to comment.