Any idea what is the reason of this beahvior?
I´ve just tried to measure voltage on my own board with LPC824 and I´ve found out, that I have same problem.
I tried to eliminate possible problem with my board, so I tried it on development board and example from LPCopen 2.15.
Voltage has been connected to P0_6 through 3,9k resistor (graph1) and then 820R resistor(graph2).
Measuring was done from the 0V to 3V (0,5V steps), ther are results in graph - each column is ADC bits / 0,5 volt, so there is very high nonlinearity, which is same on the development board, my board, different pins, different sampling speed (very slow)
column 1 0V - 0,5V
column 2 0,5V - 1V
column 3 1V - 1,5V
column 4 1,5V - 2V
column 5 2V - 2,5V
column 6 2,5V - 3V
My question is how to reach a linearity? I can use just a half of ADC range and measure only to 1,5V but this is no solution...