Shop OBEX P1 Docs P2 Docs Learn Events
BS2 help — Parallax Forums

BS2 help

ArchiverArchiver Posts: 46,084
edited 2002-07-19 13:51 in General Discussion
how can I determined if my BS2 is in good working order?



Pedro

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-07-19 13:51
    That depends on exactly what you suspect...

    When I first hook up a Stamp board after its been in storage for awhile,
    I usually put something in like:

    '{$STAMP BS2}
    Debug "Howdy!"

    However, that isn't very rigorous. If you feed voltage into pin 24, you
    can check for 5V on pin 22. If 5V is not present, the regulator may be
    blown. In this case, the Stamp may work if you put 5V regulated on pin
    22. I suppose if you were handy enough this could be repaired, but
    Parallax will do the repair for you (I think there is a small fee).

    If you suspect you've blown an I/O pin, that would be harder to test.
    You'd just have to exercise the pins to see if they work or not. I
    suppose you could connect P0 to P15, P1 to P14, etc. and "self-test"
    with something like this:

    DIRS=$FF00
    For b1 = 0 to 255
    OUTH=b1
    if INL<>b1 then fail
    Next
    DIRS=$00FF
    For b1=0 to 255
    OUTL=b1
    IF INH<>b1 then fail
    Next
    Debug "OK"
    Stopit: goto stopit ' stop without winking

    Fail:
    OUTL=0
    debug "Fail"
    goto Stopit

    This is untested. It also assumes the serial port is working. If you put
    8 LEDs, one on each pin, you'd get a nice display. Wire them so they
    light on a high output and if the BS2 is good, all the LEDs would be on
    (be careful not to exceed the Stamp's total current drive limit, no
    super bright LEDs :-) ). If the LEDs quit moving and are not all on then
    you have a failure. If you don't see OK or Fail on the debug terminal
    the serial port is bad. While the test is running you get a nice "mad
    scientist" display. Of course, if the serial port is bad, it isn't
    likely that you could download the program in the first place. However,
    if you were doing destructive analysis, this sort of program running
    would let you test to see when you had pushed the part too far :-)

    Al Williams
    AWC
    * NEW: PAK-VIa - Read PS/2 keyboards or mice -- double the buffer, lower
    current consumption.
    http://www.al-williams.com/awce/pak6.htm





    >
    Original Message
    > From: aztlanpz [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ZmsSXOC7opltmnOP3DRO7Bf3zINEd9rEiqiZcLPAIALpLtEJ9AvnuGl2yQrhWkn3zgH7hxxJrCUH1ZpMhw]Pedro_Zamora@m...[/url
    > Sent: Friday, July 19, 2002 4:27 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] BS2 help
    >
    >
    > how can I determined if my BS2 is in good working order?
    >
    >
    >
    > Pedro
    >
    >
    > 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/
    >
Sign In or Register to comment.