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.

[参考译文] TMS320F28335:如何在适用于 ADC SOC 的 Matlab C2000 Blockset 代码中设置标志?

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1479508/tms320f28335-how-to-set-flag-in-c2000-blockset-code-of-matlab-for-adc-soc

器件型号:TMS320F28335

工具与软件:

我的代码使用 DSP F28335。 我提供了3组独立于 ePWM 的 ADC SOC。 一个是在 ePWM (CTR=Zero)、ePWM (CTR=递增且等于比较器 B)、ePWM (CTR=递减且等于比较器 B)。我需要使用标志检查正确的 ADC SoC 实例、对于 ePWM (CTR=Zero)时的 ADC SOC。  但在 Blockset 中、我不会介绍如何设置标志并在某些 GPIO 引脚上锁存其输出以进行比较。