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.
设置为:
AdcRegs.ADCSOC2CTL.bit.CHSEL = 14; //选择SOC2的通道选择ADCINB6
AdcRegs.ADCSOC2CTL.bit.ACQPS = 6; //设置SOC2采样窗口为7个ADC时钟周期
AdcRegs.ADCSOC2CTL.bit.TRIGSEL = 0; //设置SOC2采用软件触发采样
如此再设置 soc0,soc1触发的采样。。。
问题1.启动采样:
AdcRegs.ADCSOCFRC1.bit.SOC2 = 1;
请问下一步如何确定采样是否完成,看了ADC Control Register 1 (ADCCTL1)的busy位描述感觉有点怪怪的,不大确定怎么用。
2.如果我同事启动多路soc,如:
AdcRegs.ADCSOCFRC1.bit.SOC0 = 1;
AdcRegs.ADCSOCFRC1.bit.SOC1 = 1;
AdcRegs.ADCSOCFRC1.bit.SOC2 = 1;
如何确定全部采样完毕?
求大神指教!!
您好,
对应于 SOC,F28027 有 16 个相互独立的 EOC,可以用来标记 ADC 转换过程的结束,触发相应的中断响应函数,具体细节可以参考技术手册:
http://www.ti.com/lit/ug/spruge5f/spruge5f.pdf