Hi.
To initialize my ports I have always done something like this:
'set all pins on portb high
portb = %11111111
'set all pins on portb to outputs
trisb = %11111111

A couple of days ago I just realised that i had to use latx.y = z instead of portx.y = z to set some pins high on the pic I was using.
I have seen some code here on the forum that initialise the ports like I do above and then set their outputs with latx.y = z.

Should not pics with output latches be initialized like this instead?
'set all pins on portb high
latb = %11111111
'set all pins on portb to outputs
trisb = %11111111

Regards
/Matias