jpeakall, you have the port direction register set for all inputs.....

Dave Purola,
N8NTA