AdcRegs.INTSEL1N2.bit.INT1CONT = 1; // set ADCInterrupt 1 to auto clr AdcRegs.ADCINTSOCSEL1.all=0xFF;// ADCInterrupt 1 will trigger SOCx, TrigSel is ignored AdcRegs.ADCINTSOCSEL2.all=0xFF; } if (mode == 2) // CLA mode, Start Stop ADC with auto clr A...