Shop OBEX P1 Docs P2 Docs Learn Events
Need help troubleshooting Ports on BS2 — Parallax Forums

Need help troubleshooting Ports on BS2

ArchiverArchiver Posts: 46,084
edited 2003-08-27 20:59 in General Discussion
Hi,

I have a BS2 and feel that the ports P0 - P15 are not working.
How do i trouble shoot this ?

Can I use a simple program like this.

Any help with circuits and sample code will be appreciated.

Kiran

X
X
'{$STAMP BS2}
'{$PORT COM2}

back:
output 1
high 1
debug "state of pin 1 is ", bin out1, cr
pause 2500
low 1
debug "state of pin 1 is ", bin out1, cr
pause 2500
goto back
X
End Cut and Paste
X--

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-08-27 20:15
    In a message dated 8/27/2003 3:08:32 PM Eastern Standard Time,
    kiranshash@y... writes:


    > I have a BS2 and feel that the ports P0 - P15 are not working.
    > How do i trouble shoot this ?
    >
    > Can I use a simple program like this.
    >
    > Any help with circuits and sample code will be appreciated.
    >
    >

    Connect a 5V LED from any pin to ground (Vss). If it is not resistorized add
    a 270 ohm resistor in series, Then write

    x var byte

    start:
    for 1 = 1 to 100
    high pin whatever
    pause 500
    low pin whatever
    pause 500
    goto start

    Make sure that at the very beginning you declare the Stamp, BS2, BSE, or
    whatever you are using. Also declare the language, 2.0 or 2.5.


    Sid Weaver
    W4EKQ
    Port Richey, FL


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-27 20:36
    At Parallax we use the BS2 to test itself -- with the RCTIME function.
    The reason for this is that it exercises both the output and input
    capabilities of a pin. If there's a problem, it will show up using
    RCTIME. GOTO the files section on Yahoo! Groups and download
    Pin_Test.BS2 to see how this works.

    -- Jon Williams
    -- Parallax


    Original Message
    From: kiranshash [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=0QiWfQXh-R_Fct0_UjzUojgLW1O7_539CZSU0MY2bf7Yd2_6Qy9-5bbAr6aMZykbSWtvzBfHreUsIA]kiranshash@y...[/url
    Sent: Wednesday, August 27, 2003 2:00 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Need help troubleshooting Ports on BS2


    Hi,

    I have a BS2 and feel that the ports P0 - P15 are not working. How do i
    trouble shoot this ?

    Can I use a simple program like this.

    Any help with circuits and sample code will be appreciated.

    Kiran

    X
    X
    '{$STAMP BS2}
    '{$PORT COM2}

    back:
    output 1
    high 1
    debug "state of pin 1 is ", bin out1, cr
    pause 2500
    low 1
    debug "state of pin 1 is ", bin out1, cr
    pause 2500
    goto back
    X
    End Cut and Paste
    X--


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-27 20:59
    In a message dated 8/27/2003 3:08:32 PM Eastern Standard Time,
    kiranshash@y... writes:


    > I have a BS2 and feel that the ports P0 - P15 are not working.
    > How do i trouble shoot this ?
    >
    >

    Kiran, do you have a BOE or just the Stamp module you have built up on a
    board?

    Sid


    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.