I'd always set TRIS before I do any Port I/O... so in Bruces example I'd initialise my PIC...
TRISB = 0 ' all outputs
PORTB = %11110000 ' output logic at power-up
in that sequence.
I'd always set TRIS before I do any Port I/O... so in Bruces example I'd initialise my PIC...
TRISB = 0 ' all outputs
PORTB = %11110000 ' output logic at power-up
in that sequence.
Bookmarks