Hi,
Does the problem arise if I do : high LED, low LED ... or.. If PB=1 then... If PB=0 then...
Next: I2C requires a pin to be an output and an input for correct communication: what should I declare in the TRIS reg ?
Thanks
Ambrogio


Quote Originally Posted by mackrackit View Post
Using many of the PBP commands as you are reading setting TRIS is not needed.
But
as time goes on and your code becomes more complex TRIS will need set. It will be good to get the habit of string TRIS now... or just wait until the code does not work and remember this.

One example would be reading/writing to the port.