BS2p input problem?
Hi
I have just found a problem while testing a new program. P0 as an
input worked ok with a previous program but now it seems to want to
allow the label to go true after about 4 seconds ( I have some pauses
in there for testing) and stay true when the pin voltage is steady
at .25 volts. (the label starts out false ok.)
It has a 10k pullup and a switch to ground through a 560 ohm resistor.
here is the stuff that matters:
DIRS is set for input
physical pin 5 is grounded through 560 ohm resistor pack.
MAINIO
label pin 0 is declared
nothing in the program changes the pin to anything else, it is only
used in - IF label then.....
where I have AUXIO label pin 0 I commented this out for a test, no
change.
I plan to look into it some more but was hoping for an easy fix on
here.
another question: when power is removed from the stamp and reapplied
does it start scanning at the beginning of the program or where it
left off?
thanks guys
Bruce
I have just found a problem while testing a new program. P0 as an
input worked ok with a previous program but now it seems to want to
allow the label to go true after about 4 seconds ( I have some pauses
in there for testing) and stay true when the pin voltage is steady
at .25 volts. (the label starts out false ok.)
It has a 10k pullup and a switch to ground through a 560 ohm resistor.
here is the stuff that matters:
DIRS is set for input
physical pin 5 is grounded through 560 ohm resistor pack.
MAINIO
label pin 0 is declared
nothing in the program changes the pin to anything else, it is only
used in - IF label then.....
where I have AUXIO label pin 0 I commented this out for a test, no
change.
I plan to look into it some more but was hoping for an easy fix on
here.
another question: when power is removed from the stamp and reapplied
does it start scanning at the beginning of the program or where it
left off?
thanks guys
Bruce
Comments
of resistor pack are you using? It sounds like you might be using an ISOLATED
rather than BUSSED Resistor network. If this is true the pin is probably NOT
actualy grounded but is really floating.
[noparse][[/noparse]Non-text portions of this message have been removed]
==================
another question: when power is removed from the stamp and reapplied
does it start scanning at the beginning of the program or where it
left off?
[noparse][[/noparse]Non-text portions of this message have been removed]
your code.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: smartdim@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=nqCL496QOYV3lg-8Dyj5tK-AB4JvQ8fyC-IeHhiPFFtcSv86rCGvofXBEwxzsQDMeBUHLUPC]smartdim@a...[/url
Sent: Tuesday, April 13, 2004 9:16 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] BS2p input problem?
Beginning
==================
another question: when power is removed from the stamp and reapplied
does it start scanning at the beginning of the program or where it
left off?