problem with adc output of lpc 2138

iam using lpc 2138 in which the output has to be taken from the adc but at the same voltage it is giving various voltage which vary about 10% to 20%.i have checked the hardware ,there is no problem with it so if some one can help me with "ADC FILTER CODE" .so that i can make the adc output stable through software.

More questions in this forum