Quote Originally Posted by Ioannis View Post
Why would give any error?

But did not defined the TRIS register.

Ioannis
Isn't using the input or output commands for the ports used is not enough or does it work?