Other Parts Discussed in Thread: MSP430F5529
Hi
i am using msp430f5529 , i am able to read adc values from memory but the values are not correct. the code i have written as follows. i am reading adc value across pin5 of port 6. i am using external reference voltage.
P6SEL |= | BIT5 ;
ADC12CTL0 |= ADC12ON | ADC12SHT0_15 ;
ADC12CTL1 |= ADC12SHS_0 | ADC12CSTARTADD_5 | ADC12SHP | ADC12CONSEQ_0 |ADC12SSEL_0;
ADC12MCTL5 |= ADC12SREF_2| ADC12INCH_5 ;
ADC12IE |= ADC12IE5 ;
ADC12CTL0 |= ADC12ENC ;
while (1)
{
ADC12CTL0 |= ADC12SC;
}