Hi all,
I want to read the ADC values from 3 different analog sensor. any idea or example ?
Thanks,
Ashok r
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.
Hi all,
I want to read the ADC values from 3 different analog sensor. any idea or example ?
Thanks,
Ashok r
Asokfair,
Is that 1:1 the sample program from the code examples? Or did you change something?
It looks like msp430g2x33_adc10_10.c which Ilmars has mentioned. But I did not compare every line. Which processor are you using? Is it the LaunchPad with the MSP430G2553?
Dennis
Hi Dennis,
I didn't make any changes in the code. Only the byte array is introduced.
Yes i am using MSP430G2335 with launchpad
Thanks,
Ashok r
Resistor divider:
3.3V - 20k5 - 10k5 - GND
Should give about 1.118V.
Or in ADC result: 1.118V / 3.3V * 1023 = 346
There it is:
Dennis
Btw.: I said clearing ENC and then waiting for the ADC to have finished does not make sense. Forget that. In a sequence it is OK to clear ENC since the running sequence is completed. In single channel single conversion mode it would stop the currently running conversion.
Thanks Dennis,
Don't know what was the problem , now started working
Thanks,
Ashok r
**Attention** This is a public forum