One thing that caught me with reading switches immediately after power up is that you have to allow enough time for the weak pull-up to actually pull the pin up. If the switch is read too soon, it may not have been pulled up yet. Harold --=20 FCC Rules Updated Daily at http://www.hallikainen.com Not sent from an iPhone. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .