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.
Hellow、
我需要使计时器具有 HET。
但我不知道如何设置本地时间以及如何计时。
我必须使用 CCS 和 HALCOGEN。 但是 het.c 中的函数解释不好。
问题1. 如何在 CCS 中设置本地时间?
问题2. 当时间从我设置的本地时间过去后、如何读取时间?
问题3. hetGetTimestamp 的值只有零,为什么?
您好!
您是否考虑将 RTI 用作计时器?
NHET 的 WCAP 指令被设计用于捕捉时间戳。 请参阅器件 TRM 中的 WCAP 指令。
在 HAL 代码中、最后一条使用的指令是 WCAP、用于捕获 CNT 指令使用的寄存器 T 的值。 我不知道如何使用 N2HET 指令来设置本地时间。
hetGetTimestamp()将在第一个 LRP 中返回零。