This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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.

Parents
  • Why did I get a strong feeling that you ignored most of what I wrote? You think your problems will go away if you just ignore your hardware issues?

    You think software filtering will be able to take into account disturbances on the supply or reference voltages that will change in size with the CPU load? So when your processor gets more to do, the ADC will measure more incorrect than when the CPU load is low. How did you plan to correct that in software? Measure the CPU load or current consumption and use as adaptive parameter for the correction?

    How have you made sure that you fulfill the following requirement from the data sheet:

    Analog 3.3 V power supply: This should be nominally the same voltage as VDD but
    should be isolated to minimize noise and error. This voltage is used to power the
    on-chip PLL.
    

    How have you isolated it?

    Or:

    Analog ground: 0 V reference. This should nominally be the same voltage as VSS, but
    should be isolated to minimize noise and error.
    

    What about:

    ADC reference: This should be nominally the same voltage as VDD but should be
    isolated to minimize noise and error. Level on this pin is used as a reference for
    A/D and D/A convertor(s).
    

    As you should have realized by now, you have some serious hardware or software issues if you get 10-20% variation on your readings.

Reply
  • Why did I get a strong feeling that you ignored most of what I wrote? You think your problems will go away if you just ignore your hardware issues?

    You think software filtering will be able to take into account disturbances on the supply or reference voltages that will change in size with the CPU load? So when your processor gets more to do, the ADC will measure more incorrect than when the CPU load is low. How did you plan to correct that in software? Measure the CPU load or current consumption and use as adaptive parameter for the correction?

    How have you made sure that you fulfill the following requirement from the data sheet:

    Analog 3.3 V power supply: This should be nominally the same voltage as VDD but
    should be isolated to minimize noise and error. This voltage is used to power the
    on-chip PLL.
    

    How have you isolated it?

    Or:

    Analog ground: 0 V reference. This should nominally be the same voltage as VSS, but
    should be isolated to minimize noise and error.
    

    What about:

    ADC reference: This should be nominally the same voltage as VDD but should be
    isolated to minimize noise and error. Level on this pin is used as a reference for
    A/D and D/A convertor(s).
    

    As you should have realized by now, you have some serious hardware or software issues if you get 10-20% variation on your readings.

Children
No data