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/TMS320F28069M: How to measure actual time using the CPUtimer0?

Part Number: TMS320F28069M

Tool/software: Code Composer Studio

Hello,

In my calculations, need to know the elapsed time of my process. How can I measure the time with CPUtimers? I don't want to use interrupts. Could you please give me an example on how to measure the time?

Regards,

Ata

  • Ata,

    Have you considered using the eCAP module? It was designed for this purpose. You can use a rising edge to trigger a start and a falling edge to trigger a stop. Then just read the register for the time. If you must use a CPU timer, you can use the TSS bit to stop the timer and read the value.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken