That was it! OUT_OFF movlw b'00000000' movwf GPIO ;turn off GPIO bit 5 goto OUT_OFF end ; directive 'end of program' I feel like a dummy for not seeing that. Thanks for the help. Dave Bob Blick wrote: > On Wed, 10 Jun 2009 16:28:14 -0400, "Dave Janne" > said: > > >> OUT_OFF movlw b'00000000' >> movwf GPIO ;turn off GPIO bit 5 >> >> end ; directive 'end of program' >> > > Hi Dave, > > There's nothing stopping your program at the end. You need an endless > loop or a sleep or something to keep from running through memory > executing randomly. > > Also do you have pullups or pulldowns on your input switches? I assume > you do but just making sure. > > Cheers, > > Bob > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist