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.

C6455 timestamp timer's frequency by using CSL

Hello everyone

I want to measure the elapsed time of one function. In the PDK, I can get the time stamp frequency and CPU frequency by using function "Timestamp_getFreq()" and "BIOS_getCpuFreq()", and then measure the correct time.

However for C6455 Chip Support Library, I did not find how to get timer frequency and CPU frequency. What I know is to use CSL_tscEnable(), and CSL_tscRead() to get the elapsed cycles.

Is that in C6455 CSL, the timer frequency and CPU frequency is default? What are they? 

Thank You.

Xining Yu

  • Hi Xining Yu,

    Xining says said:
    I want to measure the elapsed time of one function.

     

    In CCS, there is an option of measuring the time using the clock cycle option which will count instruction cycles between two points in the code.

    http://processors.wiki.ti.com/index.php/Profile_clock_in_CCS

    Regards,

    Shankari

    --------------------------------------------------------------------------------------------------------------------

    Please click the verify answer button if it answers your post

    --------------------------------------------------------------------------------------------------------------------