> I just wanted to thank you Jinx and all of you that > helped me out with your suggestions. I got it to work, > below is the "new code". Well done you, and thanks for reporting back One other little tip - you can assign a name to a pin, eg #define pushbutton porta,1 which can be used in the code like btfsc pushbutton Makes it a lot easier than remembering what all the porta bits are -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist