mohammad_talha
Newbie level 3
Ok..this might sound silly but i have a serious problem..i am trying to connect a simple switch to AT89s51 and once connected the switch ..the switch works perfectly fine ..but if i TOUCH the pin to which the switch is connected OR touch a piece of wire to ..say P2.0...it is actuated...i.e a low is detected in the programming...how can i avoid it..i.e the touch should not give a low unless it is actually grounded..