Shop OBEX P1 Docs P2 Docs Learn Events
Serial port Connection on Basic stamp — Parallax Forums

Serial port Connection on Basic stamp

metron9metron9 Posts: 1,100
edited 2007-10-02 16:04 in General Discussion
I am working with freebasic it has a open com command to open a com port.

If I dont connect anything to the port it won't open it but Hyperterminal will

If i connect it to the basic stamp or any of my serial devices even when they are powered down it can open the port

I was goinf to just use rx/tx and gnd but there must be something i need to do on my side to allow at least the open com in freebasic to open the port.

What other pins are connected on the stamp board for example that would be different than an open circuit for any of the other signal lines.

Oh and by the way if you hav not tried freebasic you shoud if you do any PC programming, it has come a long way in the last few years.


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-10-02 12:22
    metron9 -

    Based on the FreeBasic documentation file, I suspect you will need to add the following miscellaneous options to the OPEN COM statement:

    CSn=0
    DSn=0
    RS

    which turns all those options off. Give that a shot, and let us know how you make out. Hyperterminal does recognize and provide some signals that the PBASIC Stamp does not by default. USUALLY it's Hyperterminal that causes the problem but not in this case.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • metron9metron9 Posts: 1,100
    edited 2007-10-02 16:04
    Thanks Bruce, that combination of options works!

    I am not tying to communicate with the stamp (yet) but just send data to my device.
    At the moment my device consists of a single LED and resistor just to visually see the TX line.
    I have not yet looked at sending information back to the PC from a device and the various handshake and other signals involved so I am googeling.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Think Inside the box first and if that doesn't work..
    Re-arrange what's inside the box then...
    Think outside the BOX!
Sign In or Register to comment.