I am struggling with figuring out what the sample code means.
Code seems inconsistent with what I think.
- ADC10CTL1 = CONSEQ_2 + INCH_1; // Repeat single channel, A1
- ADC10CTL1 = INCH_1 + CONSEQ_3; // A1/A0, repeat multi channel
- ADC10CTL1 = INCH_3 + CONSEQ_1; // A3/A2/A1, single sequence
Can somebody explain what the code lines above mean?
I think I got the first line, but for the 2nd line, it just selected pin 1.1 as input channel, but why is pin 1.0 (A0) also defined as an input channel?
Same for 3rd line, why are pin 1.1 and pin 1.2 selected as input channel when only pin 1.3 should be selected (that is what INCH_3 means)
Thanks.