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,
Due to some design constraints i want to use ADC channels A5,A4,A3,A0 instead of A5,A4,A3,A2. As you can see, i don't want to use A2 and A1 channel (PIN 1.1 and PIN 1.2).
Is there any way to do so.
I tried writing code which you can find my code below..!!
The result corresponding to BIT5, BIT4 and BIT3 is fine but i am getting constant output of 1023 ADC COUNT corresponding to BIT0..!!
ADC10CTL0 = SREF_1 + REFON + REF2_5V + ADC10SHT_2 + MSC + ADC10ON; //Internal Vref of 2.5 volt
__delay_cycles(640);
ADC10CTL1 = INCH_5 + SHS_0 + ADC10SSEL_0 + ADC10DIV_0 + CONSEQ_1; // Multiple channel single sequence
ADC10AE0 |= BIT5 + BIT4 + BIT3 + BIT0; // Select port pins function as input Analog channels
ADC10DTC1 = 0x04; //4 conversion
Can anyone correct this code for my requirement or can anyone suggest the approach to above problem??
OR
it is not possible to get ADC sample in order A5, A4, A3 and A0 ???
**Attention** This is a public forum