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/TMS320F28034:如何通过比较器(Comp2Reg)结果生成中断?

Guru**** 2551110 points
Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/861601/ccs-tms320f28034-how-to-generate-an-interrupt-by-comparator-comp2reg-result

器件型号:TMS320F28034
主题中讨论的其他器件:C2000WARE

工具/软件:Code Composer Studio

你(们)好

我使用 Comp2作为 I 短路检测器。 我设置比较器寄存器并正确触发。 我唯一找不到的就是比较器中断。 当比较器状态变为1时、我需要芯片组产生中断。

请向我展示相关的代码和寄存器。 谢谢。

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

    您好、Zeuge、

    比较器本身不具有中断生成功能。 但是、比较器输出会进入 ePWM 的数字比较模块、因此您可以使用跳闸区域在比较器跳闸时生成中断。 请通读 ePWM 一章的数字比较和触发区子模块。 我们还提供了 C2000Ware 示例、可为您提供帮助。 这2个具体示例应该是您要寻找的示例。

    C2000Ware_version\device_support\f2803x\examples\c28\ePWM_dcevent_trip_comp

    C2000Ware_version\device_support\f2803x\examples\c28\ePWM_TRIP_zone