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.
"i have checked the hardware ,there is no problem with it"
The LPC2138 do not give 10-20% variation in the readings if your hardware is sane. My hardware may jitter in least significant bit.
So first fix your hardware.
Have you made sure the voltage reference and the supply voltages and ground plane are stable?
You have suitable caps close close close to processor pins between supply voltage and ground? Between voltage reference and ground? You have any inductors in series on voltage reference?
Do you use VCC as voltage reference or do you use a dedicated voltage reference?
Is it your hardware or some development board you have bought somewhere?
i checked the voltage referrence and supply voltages..it is stable and no inductor is in series.
Again: how, exactly, did you "check" them?
Inappropriate measurement techniques are likely to give misleading results...
View all questions in Keil forum