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.
请问如用户手册spruim8i中1562页11.6.2中配置ADC,如果设置ADC重复采样ADCINA1四次,都是利用ePWM SOCB触发,那么是接收到一次触发信号即进行四次转换,还是每接收到一次触发信号进行一次转换?
用户手册中的原文如下:As configured, when ePWM3 matches its period and generates the SOCB signal, the ADC will begin sampling channel ADCINA1 (SOC5) immediately if the ADC is idle. If the ADC is busy, ADCINA1 will begin sampling when SOC5 gains priority (see ADC Conversion Priority). Once the conversion is complete for SOC5, SOC6 will begin converting ADCINA1 and the results for SOC5 will be placed in the ADCRESULT5 register. All four conversions will eventually be completed sequentially, with the results in ADCRESULT5, ADCRESULT6, ADCRESULT7, and ADCRESULT8 for SOC5, SOC6, SOC7, and SOC8, respectively. 这里的意思我理解的就是SOC5接收到触发信号并且或者获得优先级时就会进行第一次转换,当SOC5转换结束后,SOC6就会开始转换,并没有说需要重新接收到触发信号。
Hi July,
这四个SOC的触发信号都是SOCB,那么PWM产生一次SOCB的信号,导致的结果是优先级最高的SOC转换一次,还是四个SOC轮流采样一次?
优先级最高的SOC转换一次。之后优先级交给下一个SOC,并被下一次的触发信号触发;依次循环。
每一个SOC都需要触发源进行触发的。您可以看一下11.5 SOC Principle of Operation SOC的框图:
示例代码中也有体现:
用户手册中的原文如下:As configured, when ePWM3 matches its period and generates the SOCB signal, the ADC will begin sampling channel ADCINA1 (SOC5) immediately if the ADC is idle. If the ADC is busy, ADCINA1 will begin sampling when SOC5 gains priority (see ADC Conversion Priority). Once the conversion is complete for SOC5, SOC6 will begin converting ADCINA1 and the results for SOC5 will be placed in the ADCRESULT5 register. All four conversions will eventually be completed sequentially, with the results in ADCRESULT5, ADCRESULT6, ADCRESULT7, and ADCRESULT8 for SOC5, SOC6, SOC7, and SOC8, respectively. 这里的意思我理解的就是SOC5接收到触发信号并且或者获得优先级时就会进行第一次转换,当SOC5转换结束后,SOC6就会开始转换,并没有说需要重新接收到触发信号。
这段话的侧重点放在了转换顺序上。
看一下蓝色高亮部分:
您举得这个例子是黄色高亮部分所说的情况。两者其实没有本质区别,当您用所有SOC去转换同一个通道的时候,就是对该通道的过采样。
--
如果您有不明白的地方,请让我们知道