Dear TI, Please solving my following questions:
1. In TRM, why it must minus 0.5?
2. In TRM, why the numbers of buffers is twofold?
3. How to trigger ADC by software? Does it mean writing the desired channel to the ADGxSEL?
4. I create an example to input 2 analog signals,
adcInit(); adcStartConversion(adcREG1, adcGROUP1); while(1){ while(adcIsConversionComplete(adcREG1, adcGROUP1) == 0); count = adcGetData(adcREG1, adcGROUP1, &adc_data[0]); id[0] = adc_data[0].id; value[0] = adc_data[0].value; id[1] = adc_data[1].id; value[1] = adc_data[1].value; while(time) { time--; } while(time){time--;}; }
But sometimes the result will exchange, the id[0] and value[0] will store second data, not always first data.
Could you explain it? Please have my project.
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/3666.2015_2D00_06_2D00_22_5F00_ADC-Testing.7z