主题中讨论的其他器件:C2000WARE
您好!
我们有以下代码、但无法触发 ADC:


如果我们将 ADC 触发源更改为 ePWM、则可以触发它、因此 ADC 配置应该良好。
我想这是 CPU 计时器配置不正确。
我的理解是:当 CPU 定时器达到0时、如果选择了触发源、它可能会触发 ADC SOC。
我们已经检查了 TCR、它显示定时器曾经计数到0。

请您指出这里有什么问题吗?
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:


如果我们将 ADC 触发源更改为 ePWM、则可以触发它、因此 ADC 配置应该良好。
我想这是 CPU 计时器配置不正确。
我的理解是:当 CPU 定时器达到0时、如果选择了触发源、它可能会触发 ADC SOC。
我们已经检查了 TCR、它显示定时器曾经计数到0。

请您指出这里有什么问题吗?
Howard、
是的、请参阅此论坛帖子中有关设置 TCR 寄存器的更多信息。 https://e2e.ti.com/support/microcontrollers/c2000/f/c2000-microcontrollers-forum/995115/tms320f280049c-tms320f28004x-real-time-microcontrollers-technical-reference-manual-the-tcr-register/3679388#3679388
此致、
Ozino