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:在 Matlab 代码中使用多个硬件中断时、我遇到了此错误(&quot);模型中只允许一个硬件中断实例(")。 我如何访问多个硬件中断?

Guru**** 2471920 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1477987/tms320f28335-while-using-multiple-hardware-interrupt-in-a-matlab-code-i-am-getting-this-error-only-one-instance-of-hardware-interrupt-is-allowed-in-a-model-how-can-i-access-multiple-hardware-interrupts

器件型号:TMS320F28335

工具与软件:

我使用 DSP F28335运行我的硬件。 对于我的硬件设置、我需要多个中断、每个中断专用于一个单独的子系统。

为了检测输入、我将使用 ADC 中断(SOC EPWM_A_EPWM_B)、在检测到信号后、我需要制作三个子系统、该子系统将利用一些 ADC 输入来生成 PWM。 该子系统的每个子系统均使用来自 ePWM 块的一个硬件中断进行触发。 但我无法访问多个中断、显示错误"模型中只允许一个硬件中断实例"。

如何为每个子系统提供这种单独的中断?

我 还附加了触发器模式和代码结构。