ADC12CTL1 = CSTARTADD_0 | // Start at MCTL0
SHS_1 | // Use sampling timer Timer_A.OUT1
SHP | // Sample-and-Hold Pulse select.
0 | // ISSH_0. Do no invert signal.
ADC12DIV_0 | // divide clock by 1.
ADC12SSEL_0 | // Use internal 5Mhz clock (ADC12OSC).
CONSEQ_3 // Repeat sequence-of-channels.
;
ADC12MCTL0 = INCH_3; // Input channel 3 using Vcc and Vss as voltage reference.
ADC12MCTL1 = INCH_4; // channel 4.
ADC12MCTL2 = INCH_5 | EOS; // channel 5 and End of sequence.
This actually used timerA to trigger the sampling. The timerA setup for completeness is
TACCR1 = 64; // raise interupt at 64 counts.
TACCTL1 = OUTMOD_2; // Toggle OUT_1 at CR1 and reset at at CR0
TACCR0 = 128; // Set period to 128 counts == 128/32Khz == ~ 4000 uS
TACTL = TASSEL_1 | // Use ACLK as clock. (32Khz)
MC_1; // Start timer and count up to TACCR0.