weirdo bs2 problem
Archiver
Posts: 46,084
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
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
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...