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.

[参考译文] TMS570LS3137:N2HET 中的 PCNT

Guru**** 2473260 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/683198/tms570ls3137-pcnt-in-n2het

器件型号:TMS570LS3137

大家好、

我们使用 PCNT 指令使用 N2HET 模块对脉冲数进行计数。 我们尝试提供输入信号频率、可以看到脉冲计数的数量。
之后、当我们不提供输入信号时、它仍然显示先前捕获的值。 N2HET 模块的预期行为是不是?

此致、
M.Sreenivasan。

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

    Sreenivasan、您好!

    PCNT 用于测量脉冲周期、ECNT 通常用于对边沿或脉冲进行计数。 周期或数字存储在 PCNT 或 ECNT 的数据字段中、在下一个事件之前不会更新。