can assign an input with a logic high or low??
ice-egoz
Posts: 55
Hi there, I wud like to assign the input pin with logic low so as to be able to switch off the alarm.
therefore the coding is like the following:
INPUT·8 ' lets say originally the logic is 0 and then after which the logic is 1 and now i wanna make···
············' it logic 0 again, is there anyway as to be able to assign IN8=0?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I need all ya guidance Masters. [noparse]:)[/noparse]
therefore the coding is like the following:
INPUT·8 ' lets say originally the logic is 0 and then after which the logic is 1 and now i wanna make···
············' it logic 0 again, is there anyway as to be able to assign IN8=0?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I need all ya guidance Masters. [noparse]:)[/noparse]
Comments
If you connected a standard [noparse][[/noparse]active-low]·input circuit, you could read the pin like this:
Check_Alarm_Enable:
· IF (IN8 = 0) THEN
··· ' do not sound alarm
· ELSE
··· ' allow alarm to sound
· ENDIF
· RETURN
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office