ADD
to the top of the examples posted by Jerson and me.Code:TRISB=0 ' make all of PORTB = OUTPUTS
HIGH AND LOW make the pins an output for you - setting them with PORTB = 1 (for example), you have to make them outputs first since they default to inputs on power up.
Bookmarks