TRISB = %00000000 sets portb as outputs. Try TRISB = $FF and see how it
responds.