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.

[参考译文] TMS570LC4357-RTI:使用 EP 来配置 1ms 计时器的示例代码

Guru**** 2805425 points

Other Parts Discussed in Thread: HALCOGEN, TMS570LC4357

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1625513/tms570lc4357-ep-example-code-for-configure-1-ms-timer-using-the-rti

器件型号: TMS570LC4357-TMS570LC4357 EP
Thread 中讨论的其他器件: HALCOGENTMS570LC4357

您好:

我目前正在使用 TMS570LC4357-MCU EP 并使用 HALCoGen 来配置外设。

我希望使用 RTI(实时中断)模块每 1ms 生成一次周期性中断。 我可以在 HALCoGen 中看到 RTI 配置选项、但我不清楚配置计数器、比较值和中断以实现 1ms 周期计时器的正确步骤。

请您帮助澄清一下:

  1. 使用 RTI 生成 1ms 周期性中断的 HALCoGen 中建议配置是什么?

  2. 应如何根据 RTI 时钟计算比较值?

  3. 是否有任何示例代码或参考工程可用于演示如何在 TMS570LC4357 上为 1ms 中断配置 RTI?