Shop OBEX P1 Docs P2 Docs Learn Events
Send and recieve data through the serial cable? — Parallax Forums

Send and recieve data through the serial cable?

Dr. MDr. M Posts: 3
edited 2005-10-05 19:05 in BASIC Stamp
Hi!

I have never programmed a BS before and just got myself a BS2.
I know the serial cable is used for transfering programs to the chip, but can
it also be used for recieving and sending data?

I want my BS2 to send some data back to the computer, to give me som stat on it's progress.

roll.gif

Comments

  • Tom WalkerTom Walker Posts: 509
    edited 2005-10-05 19:04
    First, the obligatory "all of tht is covered in the manual"...

    Yes, the Stamp can communicate using any of its pins as a serial port, although port 16 (the dedicated programming port) has certain advantages. Start with the "What's a Microcontroller?" text and things will become a lot clearer.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Truly Understand the Fundamentals and the Path will be so much easier...
  • allanlane5allanlane5 Posts: 3,815
    edited 2005-10-05 19:05
    Yes. You can use "SEROUT 16, 84 + 16384, [noparse][[/noparse]"Hi",13]" to send "Hi" back to the computer.

    Port '16' is a pseudo-port, that tells the BS2 to use the programming port.
Sign In or Register to comment.