Yes it will stuck, you need some pull-up resistors in that. You can enable the PIC internal one
Just saw you already did.. just the wrong wayCode:INTCON2.7=0
AND you WILL have erratic results with this routine... add a PAUSEUS 5 in this section
Code:TRISB = (dcd col) ^ $ff ' Set one column pin to output PAUSEUS 5 row = PORTB >> 4 ' Read row
Bookmarks