This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS470M Multichannel ADC

Other Parts Discussed in Thread: HALCOGEN

Hi

I using TMS470M series MCU, CCS 5.4, Halcogen 3.06.

I want to read multichannel ADC input signal.

adcData_t adc_data[2];
unsigned int Udv, Upl;
uint32_t ch_count=0;

void main(void)
{
    adcInit();

while(1)  {

     adcStartConversion(adcREG1, 1U); //Start ADC conversion
        while(!adcIsConversionComplete(adcREG1, 1U)); //Wait for ADC conversion
        ch_count = adcGetData(adcREG1, 1U, adc_data); //Store conversion into ADC pointer

        Udv = (unsigned int)adc_data[0].value;
        Udv = (int)(Udv *565/1024);

        Upl = (unsigned int)adc_data[1].value;
        Upl = (int)(Upl *565/1024);

}

}

But adc_data[0].value values ​​do not like the truth.

Please help me.