EmbeddedRelated.com
Forums

Trying to read the value of an input voltage

Started by Amnesia March 19, 2008
Hi,
I am trying to get the value of an input DC voltage in an MSP430. I am
using the ADC C code examples provided by TI but I am not getting the
correct reading. Has anybody work with something like this before and can
help?


On Wed, 19 Mar 2008 14:59:32 -0500, "Amnesia" <cresyi@gmail.com>
wrote:

>Hi, >I am trying to get the value of an input DC voltage in an MSP430. I am >using the ADC C code examples provided by TI but I am not getting the >correct reading. Has anybody work with something like this before and can >help?
Possibly ... but more info would help. What are your Vcc and analog reference voltages? What voltage are you trying to measure? Are you using a voltage divider? If so, what values? Are you buffering the input to the ADC (e.g., unity gain opamp)? Are you on a common ground and are ground and Vcc clean (not noisy)? What readings are you expecting and receiving? Are you using the same compiler as in the examples (IAR??) or gcc or ...? Could you provide a pointer to the example code and the relevant snippets of yours? -- Rich Webb Norfolk, VA