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.

CCS/TMS570LC4357: Can't start ADC for TMS570LC4357

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN, UNIFLASH

Tool/software: Code Composer Studio

I have problem using ADC block.   I am trying to start the ADC module and capture some data from the ADC data memory block.   I used HALCOGEN to generate the template and picked some arbitrary channels for ADC groups.    I chose channels 0 1 2 3 for group 0,  4 5 6 7 for group one and 8 9 10 11 for group 2.   Then I used the following code:

int i;

adcInit();
adcStartConversion(adcREG1, 0); /*Start ADC1 EV Group conversion */
adcStartConversion(adcREG1, 1);
adcStartConversion(adcREG1, 2);

adcStartConversion(adcREG2, 0); /*Start ADC2 Group 1 conversion */
adcStartConversion(adcREG2, 1);
adcStartConversion(adcREG2, 2);

for(i = 0; i<1024; i++){
/*wait for 1024 cycles */
}

adcStopConversion(adcREG1, 0);
adcStopConversion(adcREG1, 1);
adcStopConversion(adcREG1, 2);

adcStopConversion(adcREG2, 0);
adcStopConversion(adcREG2, 1);
adcStopConversion(adcREG2, 2);

After running the code I checked ADC memory block with uniFlash.   The data in the block doesn't seem to be written by ADC.   In file HL_adc.c,   I saw function called adcGetData,  do I need to use this function to write data to memory block?  The function has an agrument called adcData_t,  which I can't find the definition.

Thanks,

XG