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.

[参考译文] TMS570LS1227:使用 HET 的微秒中断。

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/730295/tms570ls1227-microsecond-interrupt-using-het

器件型号:TMS570LS1227

您好!

使用 HET、我想生成一个中断、此中断能够根据 CNT 值在'x'微秒上触发。

一旦中断触发、我希望调用一个函数。

是否有一个示例可以描述如何在触发"x"微秒中断时映射回调函数?

我无法使用 RTI、因为所有 RTI 通道都已用于其他功能。

谢谢。

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

    我没有现成的示例可以与您分享、但使用 LS1227上的 N2HET 可以很轻松地完成此操作。 您可以使用 ECMP 指令每1us 生成一次中断、还可以生成脉冲输出、以验证周期性时序。 如果您不需要验证时序、也可以直接从 CNT 指令的计数器溢出条件生成中断。 中断服务例程可以调用所需的函数。

    此致、
    Sunil