I have a board with a PIC18F13K22 that uses PORTA for the ICSP pins, and be= cause I am pin bound I also need to use these for switch inputs (obviously = cant run debugger and switches at the same time) =A0 So I enabled the pullups in INTCON2, and on WPUA, and made sure that the AN= SEL is set high as well, and yes set TRISA to inputs also. =A0 I did a simple routine to watch for the switch and loop to a routine where = it turns on the LED. =A0 No joy...been playing with this on and off for about a week....so finally n= eed to ask the group....what else might be going on that I havent thought a= bout? =A0 I actually did add external pullups...still no joy =A0 Any thoughts?=A0 I know I am overlooking something obvious.... --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .