Shop OBEX P1 Docs P2 Docs Learn Events
BS1 Project Board — Parallax Forums

BS1 Project Board

Kevin HerronKevin Herron Posts: 2
edited 2007-07-20 18:02 in BASIC Stamp
Is the Basic Stamp 1 Project Board (http://www.parallax.com/detail.asp?product_id=27112) capable of receiving input from the serial port other than during programming?

That is, can I send data to it from a terminal on my PC?

If so, how are you supposed to hook it all up? All that happens right now is it blocks on SERIN and never receives any input. The baud rates are matched up (N2400), and I have the terminal set for 8bits, no parity, 1 stop.

I'm trying to use P0 to get the input on.

Any suggestions?

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-07-20 08:17
    Kevin -

    Yes, you can input data to a BS-1 via the SERIN command although the baud rates are limited. What are you using for a terminal, or terminal program?

    A copy of your test program would sure make troubleshooting your problem a whole lot easier. Prior to that we'd just be guessing.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-07-20 15:41
    Kevin,

    You cannot input serial data over the programming port. You must use the I/O pins and a Line Driver IC (such as MAX232) to talk to a PC. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-07-20 15:53
    I thought if you put a 20 KOhm resistor in series with the TX line from the PC, the PIC chip could recieve RS-232 signal levels without damage. Assuming you'd also connected the ground wire from the PC to Vss.

    Now, to send data BACK TO the PC, then yes, you'd need a MAX232 or equivalent. Inexpensive packages (< $12) are available from http://www.kronosrobotics.com/xcart/customer/product.php?productid=16167&cat=291&page=1
    ·and elsewhere.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-07-20 16:35
    Allan,

    Yes, you could use a 22K resistor…It’s not the most elegant or reliable system but it would work in a pinch. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Kevin HerronKevin Herron Posts: 2
    edited 2007-07-20 17:39
    Chris Savage (Parallax) said...
    Kevin,

    You cannot input serial data over the programming port. You must use the I/O pins and a Line Driver IC (such as MAX232) to talk to a PC. I hope this helps. Take care.

    The BS2 can receive serial data over the programming port though?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-07-20 18:02
    Correct. The BS2 can communicate both ways over the programming port. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.