Shop OBEX P1 Docs P2 Docs Learn Events
Stamp 2 Programming Port — Parallax Forums

Stamp 2 Programming Port

ArchiverArchiver Posts: 46,084
edited 2002-11-27 22:39 in General Discussion
I have read this paragraph in the stamp manual under the Serin command
several times.

I am running a NX-1000 board so it does not pertain to me right this
minute, but for future projects I am curious to know:

Can you or can you not use the Stamp 2 Carrier Board's DB9 Programming
port and P16 for serial communications?

Quote Stamp Manual:
"The SIN pin goes to a PC’s serial data-out pin on the DB9
connector built into BASIC Stamp development boards. The connector is
wired to allow both programming and run-time serial communication
(unless you are using the Stamp 2 Carrier Board which is only designed
for programming). For the built-in serial port set the Rpin argument to
16 in the SERIN command."

mkl

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-11-27 17:35
    Matt-

    I'll say "yes, it can" and explain my reasoning. On the Stamp 2
    Carrier Board, there is a simple, direct, hard-wired connection
    between the PC port's DTR signal presented to the DB9 connector and
    the Stamp's ATN pin. The Stamp editor uses this connection (pulses
    DTR) to reset the Stamp as part of the programming process.

    If your PC-based software holds DTR de-asserted (most terminal
    programs assert DTR by default), there's no reason why you can't use
    I/O 16 on your previously programmed Stamp for serial I/O with the
    PC. I do it all the time with Visual Basic and Borland's C++ using
    a hardwired cable connection to a Stamp.

    A hardware solution would be to modify your cable to put a switch on
    DTR or use capacitive coupling on DTR. You could do the same on the
    board itself, but cables are cheaper to replace than carrier boards
    should your tool slip. ;-)

    Regards,

    Steve


    On 27 Nov 02 at 11:14, Matt Lorenz wrote:

    > I have read this paragraph in the stamp manual under the Serin
    > command several times.
    >
    > I am running a NX-1000 board so it does not pertain to me right this
    > minute, but for future projects I am curious to know:
    >
    > Can you or can you not use the Stamp 2 Carrier Board's DB9
    > Programming port and P16 for serial communications?
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-27 22:39
    Yes, for further info see:
    http://www.qsl.net/kf4haz/cables/stamps/

    or follow the link from

    http://www.qsl.net/kf4haz/

    Lonnie - KF4HAZ -

    From: "Matt Lorenz" <mklorenz@

    I have read this paragraph in the stamp manual under the Serin command
    several times.

    I am running a NX-1000 board so it does not pertain to me right this
    minute, but for future projects I am curious to know:

    Can you or can you not use the Stamp 2 Carrier Board's DB9 Programming
    port and P16 for serial communications?

    Quote Stamp Manual:
    "The SIN pin goes to a PC’s serial data-out pin on the DB9
    connector built into BASIC Stamp development boards. The connector is
    wired to allow both programming and run-time serial communication
    (unless you are using the Stamp 2 Carrier Board which is only designed
    for programming). For the built-in serial port set the Rpin argument to
    16 in the SERIN command."

    mkl
Sign In or Register to comment.