joseluistajada, Have you set the TRIS register to determine which ports will be inputs and outputs?

Dave Purola,
N8NTA