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/TMS570LC4357:编程入门-计算旋转速度

Guru**** 2449140 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/624051/ccs-tms570lc4357-getting-started-with-programing---calculate-rotational-speed

器件型号:TMS570LC4357

工具/软件:Code Composer Studio

大家好、

我想计算轴的旋转速度。 HET 应该对边沿进行计数并在一个特定数量的边沿之后触发一个中断、在这里将计算速度。

但起初、我在没有 IDE 编辑器的情况下培训简单的示例。  我在找到我需要的东西时遇到了严重的问题。

首先、我使用 HCG 生成 PWM 信号。 这起作用了。

现在、我尝试使用 HET 的另一个引脚作为该 PWM 信号的输入、并想计算频率。 我需要进行此计算的边沿数和时间。

 我想使用计时器、但我不知道如何实现计时器...

我对 Atmega 有一些经验、并使用了 Atmega 上的计时器。 在我看来、Atmega 的数据表比 TI 的 launchpad 的数据表更有用/更容易。

您是否了解任何有助于初学者解决此类问题的书籍或文献?

此致

肯南