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/TMS570LS1224:N2HET 捕捉脉冲时间戳和脉冲数

Guru**** 2454880 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/638990/ccs-tms570ls1224-n2het-capture-pulse-timestamps-and-number-of-pulses

器件型号:TMS570LS1224

工具/软件:Code Composer Studio

我想 用 N2HET 计算频率、但有时 频率太低、计算周期可能没有脉冲。 我应该通过 脉冲时间戳和脉冲数来计算频率。 如何通过 N2HET 捕捉脉冲时间戳和脉冲数?

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

    您好!

    PCNT 指令可用于捕捉输入脉冲流的高/低脉冲时间或周期。

    L01 PCNT{NEXT = L02、type=rise2fall、PIN=0}

    L02 PCNT{NEXT = L03、TYPE= fall2RISE、PIN=0}

    L03 PCNT{NEXT = L01、TYPE= Rise2RISE、PIN=0}

    L01 PCNT 用于捕获引脚0上的高电平脉冲、L01 PCNT 用于捕获同一引脚上的低电平脉冲、L03 PCNT 用于捕获引脚0上的脉冲周期。