Hi Patrick,

It would really help us if we knew which PIC you were using!

Some PIC's have comparators as well as analog inputs set up on the PortA pins that need to be disabled before the pins will work properly.

BobK