>>Also, read up a bit on "switch debouncing". (I think it is discuss >>> somewhere on piclist.com) > > > I don't think that should be an issue here, the LED is ment to > just "copy" the state of RA1. You shouldn't notice if it flickers > during a few ms. > > Jan-Erik. True, was not ment to be a solution to the problem, but teaching a beginner "good practice" when using switches on a PIC. Q.. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu