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.

[参考译文] CCS/TMS320F280041C:如何从 ePWM 通道 A 和 B 触发 ADC?

Guru**** 2529630 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/951556/ccs-tms320f280041c-how-to-trigger-the-adc-from-both-epwm-channels-a-and-b

器件型号:TMS320F280041C

工具/软件:Code Composer Studio

您好! instaSPIN 数据表建议在脉冲中间开始 ADC 转换。 那么、这里是我认为会触发 ADC 转换的代码:

ePWM_enableADCtrigger (EPWM1_base、ePWM_SOC_A);
ePWM_enableADCtrigger (EPWM1_base、ePWM_SOC_B);



ePWM_setADCTriggerSource (EPWM1_base、ePWM_SOC_A、ePWM_SOC_TBCTR_U_CMPA);
ePWM_setADCTriggerEventPrescale (EPWM1_base、ePWM_SOC_A、1);


ADC_setupSOC (ADCA_BASE、ADC_SOC_NUMBER0、ADC_TRIGGER_EPWM1_SOCA、
ADC_CH_ADCIN0、10); 

我的问题是 ADC_setupSOC。 我n`t 选择要连接到 A 和 B 通道的触发器。 只有 A 和 B。因此、我认为这意味着我的 ADC 只有在 A 通道处于活动状态时才能工作。 你能给我建议做什么吗?

谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    使用两个 SOC_Numbers、一个由 SOCA 触发、另一个由 SOCB 触发。

    NIMA