Steve

I will try moving the resistors to PORTB. Thanks.
Please excuse my ignorance but I do not understand what you mean with:

You could also try to use those internal...

Code:
OPTION_REG.7=