hi i am using 8mhz clk , & controller msp430g2553.h
BCSCTL1 = CALBC1_8MHZ; // Set range
DCOCTL = CALDCO_8MHZ;
my adc configuration is
ADC10CTL0 = ADC10SHT_1+ ADC10IE+MSC+SREF_0+ADC10ON;
ADC10CTL1 = INCH_7 + SHS_0+CONSEQ_2;//+ADC10DIV_7;//+ADC10SSEL_0; // P1.7 A7 channel select
ADC10AE0 = 0x80; // P1.7 ADC10 option select
ADC10DTC1=0x04;
ADC10DTC0=0x40;
when an interrupt occurs at rising edge my adc starts reading,(i am giving pwm pulse at P1.7 with Ton=20us & Toff=230us @ 4khz frequency).I am setting a bit and resetting it for taking the time duration of my adc
P1OUT=0x40; //setting a bit
ADC10CTL0 |= ENC+ADC10SC ; // ADC10 enable set
ADC10SA = (int)adc;
avg_adc=((adc[0]+adc[1]+adc[2]+adc[3])/4);
P1OUT&=~0x40; //resetting a bit
when i put scope at P1.6 my adc is ON for only 1.6us remaining 248.5 it is off .BUt in data sheet it given 200ksps (i.e)5us per sample For 4 (adc[0]+adc[1]+adc[2]+adc[3])samples 20us i calculated
But for me all sample are taking at 1.6us .Am i setting and resetting the bit at correct position
pls help me in how to find the adc timing sample