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.

[参考译文] RM48L952:如何使定时器具有 HET?

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1105002/rm48l952-how-to-make-the-timer-with-het

器件型号:RM48L952
主题中讨论的其他器件:HALCOGEN

Hellow、

我需要使计时器具有 HET。

但我不知道如何设置本地时间以及如何计时。

我必须使用 CCS 和 HALCOGEN。 但是  het.c 中的函数解释不好。

问题1. 如何在 CCS 中设置本地时间?

问题2.  当时间从我设置的本地时间过去后、如何读取时间?

问题3. hetGetTimestamp 的值只有零,为什么?

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

    您好!

    您是否考虑将 RTI 用作计时器?

    NHET 的 WCAP 指令被设计用于捕捉时间戳。 请参阅器件 TRM 中的 WCAP 指令。

    在 HAL 代码中、最后一条使用的指令是 WCAP、用于捕获 CNT 指令使用的寄存器 T 的值。  我不知道如何使用 N2HET 指令来设置本地时间。

    hetGetTimestamp()将在第一个 LRP 中返回零。  

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

    感谢您的回复。