ADC12CTL0=ADC12ON+REFON+REF2_5V+SHT0_6;//SetupADC12,ref.,samplingtime ADC12CTL1=SHP;//Usesamplingtimer ADC12MCTL0=INCH_10+SREF_1;//SelectchannelA10,Vref+ 上段程序就表示参考电压VR+=Vref+=2.5v?