I have a question about Timer_A configuration. Attached is a snippet of code from example msp430fr599x_adc12_11 in MSPWare:
ADC12CTL0 = ADC12SHT0_0 | ADC12ON; // Sampling time, S&H=4, ADC12 on
// Use TA0.1 to trigger, and repeated-single-channel
ADC12CTL1 = ADC12SHP | ADC12SHS_1 | ADC12CONSEQ_2;
// A1 ADC input select; Vref+ = AVCC
ADC12MCTL0 = ADC12INCH_1 | ADC12EOS;
ADC12IER0 |= ADC12IE0; // Enable ADC interrupt
ADC12CTL0 |= ADC12ENC | ADC12SC; // Start sampling/conversion
// Configure Timer0_A3 to periodically trigger the ADC12
TA0CCR0 = 2048-1; // PWM Period
TA0CCTL1 = OUTMOD_3; // TACCR1 set/reset
TA0CCR1 = 2047; // TACCR1 PWM Duty Cycle
TA0CTL = TASSEL__ACLK | MC__UP; // ACLK, up mode
This timer is used to trigger ADC acquisitions. I am confused about the period being identical to the duty cycle. The timer output appears to be turning off at the same time it is turning on. Is this correct and if so, what is the pulse duration? One clock cycle? Does it need to be short for this application?