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.

[参考译文] AM2634:当达到 0xFFFF 时、PRU 周期计数器停止

Guru**** 2747375 points

Other Parts Discussed in Thread: AM2634

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1602317/am2634-pru-cycle-counter-stops-when-0xffff-ffffreached

器件型号: AM2634

尊敬的 TI 支持服务:

我正在开发一个程序、用于通过 AM2634 芯片的 PRU0 生成简单的 xy2 100 流。

为此、我使用 PRU 周期计数器的时基。

遗憾的是、当达到最大值 0xFFFF FFFF 时、计数器似乎停止。

我修补了重置计数器的行为、并在达到阈值时再次启用计数、但我会问:

  • 是否可以启用循环计数器翻转?
  • 是否有任何其他方法来处理循环计数器翻转?

此致、非常感谢您的帮助

 

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

    您好、

    请注意,由于假日季,回复可能会有一些延迟。  

    此致、
    Aishwarya

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

    你(们)好

    [报价 userid=“524364" url="“ url="~“~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1602317/am2634-pru-cycle-counter-stops-when-0xffff-ffffreached
    • 是否可以启用循环计数器翻转?
    [/报价]

    不,这是不可能的。 我们需要重置并再次启用循环计数器。

    您还可以查看 PRU-ICSS 中的 IEP 计时器模块。

    此致

    Dhaval