Well, I can only guess. You may have not set correctly I/O, ADC or other parameters of the chip yoy are using...

Ioannis