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.
利用ADC的采样触发CLA任务,然后在CLA任务里面清除ADC中断触发标志,发现清除不掉。问题:是否CLA任务中无法访问ADC的控制寄存器?
interrupt void Cla1TaskDcCtrlCh1 ( void ) // 由ADCA的ADCINT3触发此cla任务
{
// function code
AdcaRegs.ADCINTFLGCLR.bit.ADCINT3 = 1;
}
手动清除 AdcaRegs.ADCINTFLGCLR.bit.ADCINT3寄存器后会发现重新触发进入cla任务,但上述方式无法自动清除重新进入cla任务
但从这个图上面可以看到CPU1.CLA1是有总线连接到ADC config和ADC results的,不知道是不是有配置能操作ADC的配置寄存器?
Hi cheng mingming,
不好意思,上面回复错了。
我和相关工程师确认了一下,CLA是可以配置ADC的:
(zhcse98j_TMS320F2807x 微控制器 datasheet (Rev. J) 8.5 总线架构 - 外设连接)