void init_ADC(void) { P6SEL = 0X01; ADC12CTL9 &= ~(ENC); ADC12MCTL0 = INCH_0 + EOS; ADC12CTL1 = 0X00; ADC12CTL1 += CSTARTADD_0; ADC12CTL1 += SHP; ADC12CTL1 += CONSEQ_1; ADC12CTL1 += ADC12SSEL_0; ADC12CTL1 += ADC12DIV_0; ADC12CTL0 = ADC12ON + REFON + REF2_5V + SHT0_6; ADC12IE = 0; ADC12IE