Hi,
I'm trying to get as fast conversion rate as possible by using msp430f155 12-b ADC. I'm using repeat single-channel mode and I'm quite far from 200 ksps. What I'm doing wrong or is it impossible to get such conversion rates using repeat single-channel mode?
Thanks in advance
--------------------------
void main(void){
WDTCTL = WDTPW + WDTHOLD;
ADC_Init();
ADConversions();
}
void ADConversions(void){
index = 0;
ADC12IE = 0x01; // Enable ADC12IFG.0
ADC12CTL0 |= ENC; // Enable conversions
ADC12CTL0 |= ADC12SC; // Start conversion
_BIS_SR(LPM3_bits + GIE); // Enter LPM3,Enable interrupts
}
#pragma vector=ADC12_VECTOR
__interrupt void ADC12ISR (void){
Badc = ADC12MEM0;
index++;
}
void ADC_Init(void){
P6SEL |= BIT1;
ADC12CTL0 = ADC12ON+SHT0_0+MSC+REFON+REF2_5V;
ADC12CTL1 = SHP+CONSEQ_2;
ADC12MCTL0 = SREF_1+INCH_1;
}