ADC Nonlinear Output

Without knowing the circuit you're using to drive the pin nor the way you are measuring the voltage it's impossible to say anything useful. Do you use 3.3V for any part of the circuit, it looks suspiciously like something is limiting the voltage to the pins. Full code is useful too.