Matthew
02-16-2005, 12:39 PM
Hello.
I have a 'break wire' trigger system set up on my stamp so that if IN6 = 0, the program will continue.
Pretty much the loop looks like this:
DO
LOOP UNTIL IN6 = 0
I have pin 6 conntect to a 220 resistor, which is connected to a wire, which is then connected to Vdd. Everything starts connected, and supposedly if I remove the wire, IN6 is supposed to = 0. In my case, sometimes it reads it right away, sometimes it takes up to 4 seconds. I know it's not a refreshing issue because I tested this:
DO
counter = counter + 1
DEBUG HOME, DEC5 counter
DEBUG, CR, DEC1 IN6
LOOP UNTIL IN6=0
'Counter' increases it's value very very very very rapidly, yet sometimes it won't detect IN6 being 0 if the wire is broken.
Any ideas?
I have a 'break wire' trigger system set up on my stamp so that if IN6 = 0, the program will continue.
Pretty much the loop looks like this:
DO
LOOP UNTIL IN6 = 0
I have pin 6 conntect to a 220 resistor, which is connected to a wire, which is then connected to Vdd. Everything starts connected, and supposedly if I remove the wire, IN6 is supposed to = 0. In my case, sometimes it reads it right away, sometimes it takes up to 4 seconds. I know it's not a refreshing issue because I tested this:
DO
counter = counter + 1
DEBUG HOME, DEC5 counter
DEBUG, CR, DEC1 IN6
LOOP UNTIL IN6=0
'Counter' increases it's value very very very very rapidly, yet sometimes it won't detect IN6 being 0 if the wire is broken.
Any ideas?