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.

MULTIPLE ADC'S

Other Parts Discussed in Thread: MSP430G2553

Hello,

           I am using MSP430G2553 launchpad. I need to use 2 ADC 's for my project, i doubt in how to access the conversion values of my two inputs.

For example, i am choosing INCH_2 in ADC10CTL1 register. Now i don't know how to access the conversion values using Data transfer controller.

  • The MSP430F2xx users guide explains the working of all modules found in any 2x device, including the ADC10 and its DTC. You should be able to answer your questions by reading the appropriate chapters. (in short: when using the DTC, any result is moved from ADC10MEM to the next memory location until the specified number of results has been transferred. No interrupts are given until the DTC is done, so be sure that the ADC will produce at least the number of results the DTC expects)
    It should be noted that the G2553 has only one ADC. It has multiple (multiplexed) input channels but can only do one conversation at a time. So sampling two channels has to be done alternating or as part of a sequence.
    Also, if using sequence mode to sample a sequence, the sequence always starts on channel X and goes down to channel 0. So better stack all your required inputs from channel 0 up, unless you have a very good reason to use the pins for something else. Especially since the digital pin functions are disrupted while the ADC samples a channel.

**Attention** This is a public forum