AdcRegs.ADCSOC1CTL.bit.CHSEL = 0; //set SOC0 channel select to ADCINA0 选择AD通道
AdcRegs.ADCSOC1CTL.bit.TRIGSEL = 1; //set SOC0 start trigger on software only 选择AD触发方式
AdcRegs.ADCSOC1CTL.bit.ACQPS = 6; //set SOC0 S/H Window to 7 ADC Clock Cycles, (6 ACQPS plus 1)
AdcRegs.INTSEL1N2.bit.INT1SEL = 1; //setup EOC0 to trigger ADCINT1 to fire;
AdcRegs.INTSEL1N2.bit.INT1E = 1; //Enabled ADCINT1;使能中断;
AdcRegs.INTSEL1N2.bit.INT1CONT = 0; //禁止中断连续模式;
AdcRegs.ADCINTSOCSEL1.bit.SOC0 = 1; //ADCINT1 will trigger SOC0. TRIGSEL field is ignored.
AdcRegs.ADCINTSOCSEL1.bit.SOC1 = 1; //ADCINT1 will trigger SOC0. TRIGSEL field is ignored.