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.

TMS320F280049: How to clear the timer value automatically

Part Number: TMS320F280049

Tool/software:

Dear Colleagues

Please see below, In my application,  

I want to set a timer for 5us, counting from the last rising edge.

The frequency of this signal is up to 10MHz, so it is not suitable to interrupt at every rising edge.

I would expect to be able to generate an interrupt on the first rising to start the timer, and then subsequent rising edges(Not defining how many rising edges) simply reset the counting value of the timer until the last rising edge,

In ARM core MCU, there is a reset input PIN for the timer, but for F280049, how to implement this feature?

thanks!

BR

JJL

  • Hi JJL,

    Generally, for the CPU timer module in the F28004x, you would configure the period of the timer and start the timer inside your main loop after the configurations are complete using the CPUTimer_startTimer() driverlib function. If you are asking about changing the period part way through, you should be able to pause the timer using the CPUTimer_stopTimer() function, calling the CPUTimer_setPeriod() with your new desired timer period, then calling CPUTimer_resumeTimer().

    Best Regards,

    Delaney

  • thanks for your response!