Shop OBEX P1 Docs P2 Docs Learn Events
weirdo bs2 problem — Parallax Forums

weirdo bs2 problem

ArchiverArchiver Posts: 46,084
edited 2003-05-18 17:26 in General Discussion
I seem to have encountered a strange problem with my BS2 (original)
and I'm hoping someone out there has a solution. Any time any of
the 16 I/O pins is placed in output mode, the pin will strangely
toggle its state every 2 seconds for no apparent reason.

To me, the weirdest thing is the regularity of it all. It's almost
as if the pins are on a 0.25 Hz clock pulse of some kind. The only
way I've found to stop this behavior is to place the pin back in
input mode.

Any thoughts from the experts out there? Could this just be a bad
unit?

Here's the test code I'm using (though it does this regardless of
what the code says or whether or not the pin has a load):

'{$STAMP BS2}
dirs = %000000000001111
out0=0
out1 =0
out2=0
out3=1
end

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-05-18 17:26
    I'm not sure what you mean by toggling, but it may be you're seeing
    the results of the END statement being the last statement executed.
    See END and SLEEP in the manual and pay particular attention to the
    comments regarding low power mode and the ~2.3 second watchdog timer.

    Try this instead and see if it fixes things:

    '{$STAMP BS2}
    dirs = %000000000001111
    out0=0
    out1 =0
    out2=0
    out3=1
    stop

    Regards,

    Steve

    On 18 May 03 at 7:18, max2451234 wrote:

    > I seem to have encountered a strange problem with my BS2 (original)
    > and I'm hoping someone out there has a solution. Any time any of
    > the 16 I/O pins is placed in output mode, the pin will strangely
    > toggle its state every 2 seconds for no apparent reason...
Sign In or Register to comment.