Quote Originally Posted by tumbleweed View Post
TRISB = 15

You're only setting RB0-RB3 as inputs
Thanks both for help..... Missing the obvious, for some reason I copied and pasted previous code, but left TRISB as 15.

Changed to 255 and all works now......

Thank you again