A little story. Many years ago I was using the ADC to read a pot. All the readings I got were skewed towards zero!! It didn't make sense. I eventually found that, although I'd switched to analogue, I'd left it as output and the chip itself was trying to drive the pin low. Lesson learnt, analogue pins can still be set to output and act as digital output pins. Just a wild guess.
Burt, maybe you could try this.
Mike.
Burt, maybe you could try this.
Mike.