Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: LM3S8971, LM94022, INA240
Hi everybody,
I write because I don't find a correlation between the theoretical and the measured timing of the ADC in TM4C1294.
TIMER0 triggers the ADC0 at 5 kHz. The ADC0 is configured to sample 8 channels: 2 on ADC0SS0, 2 on ADC0SS1 and 4 on ADC0SS2. INT_ADC0SS2 generates an interrupt.
The same TIMER0 generates also an interrupt. I use it to measure the time between the trigger and the end of conversion.
The ADCclock is configured to run at 32 MHz. It has been configured with the following instruction:
ADCClockConfigSet(ADC0_BASE, ADC_CLOCK_SRC_PLL | ADC_CLOCK_RATE_FULL, 15);
So, I expect a theoretical conversion time of:
Tconv=1/(ADCclk/(12+4))= 0.5 us /sample (it's not a coincidence that 2 Msps is the maximum throughput of the ADC)
so, for 8 samples the total time should be Tconv*Nsamples=4 us.
However, I measure about 9 us between the trigger and the ADC interrupt.
Besides, if I use a hardware oversample of 16x, I expect to have:
Tconv*Nsamples*foversample=0.5*8*16=64 us.
However, the measurement shows about 33 us.
So, my question is why the conversion time is different in both conditions in different ways?
Thank you for your time,
Regards

