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: How to make the timer with HET?

Part Number: RM48L952
Other Parts Discussed in Thread: HALCOGEN

Hellow,

I wnat to make the timer with HET.

But I don't konw how to setting the local time and how to time it.

I have to use the CCS and HALCOGEN. But the function in het.c have a poor explantion.

Q1. How to setting the local time in CCS?

Q2. After time passes from local time that I setting, how do you read time?

Q3. hetGetTimestamp is only a value of zero. why is it?

  • Hi,

    Have you considered using the RTI as timer?

    The WCAP instruction of NHET is designed for capture timestamps. Please refer to WCAP instruction in device TRM.

    In HAL code, the last instruction used is WCAP to capture the value of register T which is used by CNT instruction. I don't know how to set the local time using N2HET instruction.

    hetGetTimestamp() will return zero in first LRP. 

  • Thank you for your kind reply.