Benoit wrote: >I'd like to use the internal pull-up features on 16X84 >for RB4-7 inputs. Try this, I used this code in a 4X4 keypad:) BSF STATUS,RP0 ;SWITCH TO BANK 1 MOVLW B'11111111' ;MAKE PORTB MOVWF TRISB ;ALL INPUTS BCF OPTREG,RBPU ;ENABLE WEAK PULLUPS BCF STATUS,RP0 ;SWITCH TO BANK 0 More code examples at www3.mistral.co.uk/brian.clewer Brian.