Straight from datasheet ...

Code:
Also, ensure that ADCON1 is configured
for digital I/O. In this mode, the input buffers are
TTL.
Alain