Shop OBEX P1 Docs P2 Docs Learn Events
Homework board question and serial communication. — Parallax Forums

Homework board question and serial communication.

JMLStamp2pJMLStamp2p Posts: 259
edited 2007-10-13 02:19 in BASIC Stamp
·
·Hello,
I am trying to help a gentleman with some Visual Basic code that reads data into the VB program from a homework board via a BS2 Stamp. I need to know if a straight cable connection requires a Null Modem adapter and if he needs to use Pin 16 for the right voltage levels since it is a dedicated serial pin ?

Thanks,
JMLSTAMP2P

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2007-10-13 00:26
    1. The Homework DB-9 connector is already wired as "DCE", also known as "Data Communication Equipment", also known as "like a Modem". Thus, it's designed for a 'straight-through' cable, and does NOT need a null-modem adapter. Don't try to save wire by only doing pins 2, 3, and 5, because you also need pins 7 and 8.· AND 6, I believe.

    2. "Pin 16" is a pseudo-pin number, used in SERIN/SEROUT statements on the BS2, to indicate to the BS2 code that it should use the "programming port" for sending and recieving data. It does NOT refer to any physical "pin 16". The real I/O pins are numbered zero through 15.

    3. Anything the gentleman sends from VB to the BS2 WILL be echoed back to the VB port -- that's a feature of the BS2 hardware.

    Post Edited (allanlane5) : 10/13/2007 12:57:37 AM GMT
  • JMLStamp2pJMLStamp2p Posts: 259
    edited 2007-10-13 00:34
    Thank You, Very helpful
    JMLSTAMP2P
  • Kevin WoodKevin Wood Posts: 1,266
    edited 2007-10-13 02:19
    You can also find several articles & forum posts on the general topic of BS2 & serial port comms (with various programming languages) by using the Google search engine at search.parallax.com.
Sign In or Register to comment.