Hello,
I have a query regarding the time elapsed after the End of Conversion (EOC) of the ADC module until the actual execution of the ADC interrupt. As mentioned in the datasheet, "If the INTPULSEPOS bit in the ADCCTL1 register is set, t INT will coincide with the conversion results being latched into the result register". I have calculated the sample and hold time and the A/D conversion time as per the datasheet. However, When I measure the time from SOC to execution of the first line of the adc interrupt, there is some time unaccounted for. I have elaborated the problem below:
The ADCA module is configured to convert one pin. The acquisition window is set at 75 ns (t_SH). ADC clock is running at 50 MHz. System clock is running at 200 MHz. According to datasheet, the time t_EOC will be 10.3 ADCCLK cycles. This makes t_EOC 206 ns. So, t_SH + t_EOC = 281 ns.
The EPWM1 module is configured as ADC SOC. The SOC occurs at CTRU = CMPA. An action qualifier is configured to set the channel at CTR = zero and clear the channel at CTRU = CMPA. The EPWM channel is monitored on an oscilloscope.
A GPIO pin (GPIO93) is set at the first line of the ADC interrupt routine and cleared at the end of the routine. This pin is being monitored on the oscilloscope.
The time difference between the clearing of EPWM channel and the set of GPIO93 is measured as 410 ns. The time taken for the set instruction on a GPIO pin was measured approximately as 25 ns. The time unaccounted for is thus found out to be (410 - 25 - 281) ns = 104 ns. Even if I consider a couple of cycles more for the latching of the ADC results, there is still much time unaccounted for.
Please correct me if there is some mistake in the implementation or measurement. It will be helpful if I could get some reference document which explains the excess time.
Please let me know if any other information is required.
Thank you.



