Hi,
It is good practise to set the PORT to a known state before using the TRIS register to enable the outputs. When the pic starts up the PORT register can be anything so by setting it before we enable the outputs we dont have to sit there looking at our project going up in smoke just becuse the PORT ended up at a random unlucky combination.
/me
Bookmarks