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: ConfigCpuTimer ( Launchpad f28377s)

Tool/software: Code Composer Studio

Hi,

In this example: (&CpuTimer0, 200, 20) - The "Freq" is entered as "MHz" and the period in "uSeconds".

1. If I calculate the frequence of 200Mhz separately, what is the period?

2. And if I aplicate the function above (&CpuTimer0, 200, 20) what is the period ?

NOTE: I'm using its Launchpad f28377s, it works with 200 MHz and 32-bit. 

I would like to know how periods and timers works

Thanks

  • Hi Michael,

    I did not completely understand your question #1, can you please clarify.

    Answer to your 2nd question is 20us.

    configCpuTimer function is use to configure CPU timers, which will count till the time period configured is reached, and then it will generate an interrupt. With above configuration it will count for 20us. 200MHz is the frequency at which CPUTimer counts, if you are running System at 200MHz, then you specify 200000000 (I believe the input to the function is in Hz and not MHz).

    For more details on CPU timers, you can reference Technical Reference Manual.

    Regards,
    Nirav
  • Hi Peter,

    Do you still have issues using the timer functions? Let me know if I can help you, and if the issue is resolved, can you please close the thread?

    Thanks,
    Nirav
  • Hi Nirav, Tahnks for your answer.

    question #1: in a normal situation, whithout configCpuTimer function, 200Mhz correspond what period ??
    ( 1 / 200000000 )= 0.000000005

    thanks
  • Hi Peter,

    Yes. If I answered all your questions, please close the thread.

    Regards,
    Nirav