Hi,
In high resolution mode (16 bit), the LPC5528 ADC has a large number of "missing codes", i.e., between every code the ADC generates, there are codes that will never been generated no matter what the input voltage is. Specifically, the LPC5528 ADC exhibits a quite regular behavior with (mostly) 3 consecutive missing codes in between two generated codes. See here.
Obviously this ADC also exhibits "code gaps". With code gaps I mean that there are not only 3 consecutive single codes missing but 5 to 10 successive codes. This is because at the gaps the codes that the ADC usually can generate are missing, too, or rarely generated. These code gaps are quite evenly spaced and about 1000 codes steps (LSBs) apart.
See this graph: ADC conversion results (in purple) over conversion number for slowly changing input signal.

That's bad.
I can work-around missing codes by averaging. However, this does not work for codes at the "gap". There, the ADC's behavior with result to codes is highly nonlinear and can not be cured by averaging.
Any ideas?