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.

G2553 ADC10 多通道循环采样问题



两个通道的已经实现但是现在我改为三个通道的话就最高那个通道采回来的值是错的就一直是一个值,,这是为什么

ADC10CTL0 &= ~ENC;
ADC10CTL0 = ADC10IE + ADC10ON + REFON + ADC10SHT_3 + SREF_1+REF2_5V+MSC;
ADC10CTL1 = CONSEQ_3 + ADC10SSEL_0 + ADC10DIV_3 + SHS_0 +INCH_2;
ADC10AE0=BIT0+BIT1+BIT2;
ADC10DTC1|=0x06;//一共采样6次
ADC10CTL0 |= ENC;

这是我的配置。。希望有人解答谢谢