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.

使用EOCx INT判断AD采样完成的问题

大家好,最近学习28069,进行adc内部温度传感器采集的实验。

在例程中,使用EOCx INT判断AD采样完成,代码如下:

//Wait for end of conversion.
while(AdcRegs.ADCINTFLG.bit.ADCINT1 == 0){} //Wait for ADCINT1
AdcRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //Clear ADCINT1

但是我查阅了ADC的时序表,发现中断发生远远早于结果被锁存到result寄存器。

这样的话,请问如何通过INT确定采样完成呢?

流水线似乎能解释这个问题,但是我找不到相关资料。

期待大家解答!