ke, if you post the code it would be easier to help you. OR ;--------------------------------- ; Just toggle the LED, HIGHLY sensitive to button bounces !!!! Wait4In1 btfss Port,_InPin ; Loop untill _InPin gets high goto Wait4In1 ;--- btfsc Port,_OutPin ; Toggle LED goto ToggleLEDOff ToggleLEDOn bsf Port,_OutPin ; Turn LED on goto ToggleLED_end ToggleLEDOff bcf Port,_OutPin ; Turn LED off ToggleLED_end ;--- Wait4In2 btfsc Port,_InPin ; Loop untill _InPin relases goto Wait4In2 ;--- goto Wait4In1 ; Repeat /Bjarne -----Ursprungligt meddelande----- FrŒn: ke [mailto:neehr@SWIPNET.SE] Skickat: den 5 november 1999 10:00 Till: PICLIST@MITVMA.MIT.EDU €mne: Beginners ouestion Hello! Can anybody help a beginner on PIC ? My problem: I try to get a LED to light the whole time after that I turn it on with a momentary switch (- on ). What who happenings now is, when I released the switch the LED turn off. ( IĞm only used bsf and bcf instructions ) Please help me out ! Regards ke N