Quote Originally Posted by aratti View Post
Code:
TRISB        = %11110000            ‘B.0 – B.3 inputs, rest outputs.
Your TrisB setting is wrong. To have B0 - B3 as inputs then the TrisB should be the other way around

TrisB = %00001111

Cheers

Al.
Al nailed it, the way "I" keep those straight is 0 looks like the letter O for output
and 1 looks like the uppercase letter I for Input, works for me anyway.