Just come back to PICs after a very long break. Just updating an old project, on a 16F84. Very simple, just flashes LEDs etc. Now changed rb6 and rb7 to inputs to read a pair of simple switches, which are pulled low by 10K res, then switch pulls them high. I've set to inputs like this.... move to bank 1 movlw b'11000000' movwf TRISB return to bank0 etc then read them as btfsc portb,6 etc but when run PIC does not recognise state of RB6 and RB7 -a simple voltmeter check on them gives approx 1.55 volts when they are not pulled high by input switch. Can anyone suggest what is causing this? I think it is something simple and I'll kick myself when I realise.... Stuart -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.