Quote Originally Posted by Dave View Post
joseluistajada, Have you set the TRIS register to determine which ports will be inputs and outputs?
You dont need to set the pins to outputs when using "high" and "low".

It's probably the analog part that is the problem just as darrel writes.