AnsweredAssumed Answered

List based ADC architecture

Question asked by Basil Mathew Tharian on Aug 14, 2018
Latest reply on Aug 20, 2018 by Daniel Martynek

Can somebody help me to know about the List based ADC architecture in a simple way ? or some link ?

 

unsigned int ADC_read(unsigned int channel)

{

 adc0_cmdlist[0][1] = 0xC0|channel;                    What does this line of code means ???


 ADC0FLWCTL_RSTA = 1; // Restart Event
 while(0x00 == ADC0CONIF){} //wait until conversion is complete
 ADC0CONIF = ADC0CONIF;//clear flag
 return adc0_results[0];
}

Outcomes