This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

adc10 reading

Other Parts Discussed in Thread: MSP430G2452

i use msp430g2452,

when i read the 24 mili volt, i get reading around 80 on lcd display.

i use 2.5v as reference.

since

0.024/2.5 * 1023 = 10.

so i should get around 10 instead.

below is my adc configuration.

ADC10CTL0 = SREF_1 + ADC10SHT_0 + MSC + REFON + REF2_5V + ADC10ON;
delayUs(50);
ADC10CTL1 = INCH_1 + SHS_0 + ADC10DIV_5 + ADC10SSEL_0 + CONSEQ_2;
ADC10AE0 = BIT1;
ADC10DTC1 = NSAMPLES;

i not sure whether  i did something wrong in the configuration or not.

  • I do not know your MSP and the configuration routine, but I would be playing around with different measurment values a little bit more in your case.

    For example what is the result for 1 V, 2,5 V etc.. to get a feeling if perhaps your code works absolutly fine, but some hardware issues are present, as 24 mV are not easy to detect without getting some serious noise on it, etc...

**Attention** This is a public forum