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.
在进行AD转换开始和结束时使用DINT和EINT指令,
DINT;
AdcRegs.ADCMAXCONV.all = 0x0000;
AdcRegs.ADCCHSELSEQ1.bit.CONV00 = 0xa;
AdcRegs.ADCST.bit.INT_SEQ1_CLR = 1;
while(AdcRegs.ADCST.bit.INT_SEQ1 == 1)
;
AdcRegs.ADCTRL2.bit.RST_SEQ1 = 1;
AdcRegs.ADCTRL2.bit.SOC_SEQ1 = 1;
while(AdcRegs.ADCST.bit.INT_SEQ1 == 0)///等待ad转换完成
;
addata25 = AdcRegs.ADCRESULT0 ; ////read data
EINT;
在EINT指令前后分别读取EVA T1计数器的值,按照理论应该是几个计数,但是实际用了40多个计数,大概0.3us,请问 EINT指令具体在执行什么操作?