TRISB = XXX
PORTB = XXX
are not the same thing. One sets direction and the other is on/off.

What happens if you pull the 232 chip?