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.

  • Resolved

CCS/PGA900: Count clock cylces

Intellectual 310 points

Replies: 1

Views: 28

Part Number: PGA900

Tool/software: Code Composer Studio

Hi,

is it possible to count the clock cycles of the PGA900 core during in debug sessions in the ccs

Regards

  • Hello,

    There isn't a dedicated clock counter in the PGA900's Cortex M0 processor. However, you can use the Systick function to determine the elapsed time of functions by setting it to start at the maximum value, start the countdown where you would like to begin your measurement in the code, and then stop the systick where you would like to finish your measurement. Just subtract the current value of the systick from the starting value to find the elapsed time.

    Regards, 

    ____________

    Scott Cummins

    Precision ADC Applications

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.