If you're using PORTB.0=1 or PORTB.0=0 you'll want to include TRISB.0=0 first to make the
pin an output, or change to HIGH 0 / LOW 0. Port pins are set as inputs by default on
power-up.

HIGH & LOW commands will automatically handle setting TRIS for you, where PORTB.0=? will
not.