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.

TMS320F28335: Configuration for timer interruption

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Hi Team,

Which registers should be configured for timer interruption and the order of configuration?

Beat Regards,
Tom Liu

  • Hi Liu,

    The best way to walk through how to configure a timer is by looking at one of our software examples within C2000Ware:

    C:\ti\c2000\C2000Ware_Version\device_support\f2833x\examples\timed_led_blink

    Within this example is an 'InitCpuTimers()' function that initializes all three CPU timers. You can then use the 'ConfigCpuTimer()' function to configure how often you would like interrupts based on your CPU frequency. If you right click on each of the functions you should be able to open the declaration and see which registers are being modified and in what order.

    After initializing and configuring the timer you can start the timer by writing a 0 to the TSS bit of the TCR register. Additionally, set the TIE bit of the TCR register to a 1 in order to enable interrupts for the timer.

    Please let me know if you have any more questions and I'd be happy to help you further.

    Best Regards,

    Marlyn