Skip to Main Content Skip to Search
Product Documentation

C6000 CPU Timer - Select timer and configure periodic interrupt

Library

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C6000/ Scheduling

Description

Configures the CPU timer period on your board. The timer raises periodic interrupts when the timer counter reaches the timer period. While the block provides two timers, 0 and 1, some CPU's have more or fewer than two timers. For example, the DM642 provides three timers. If you set Timer no to 1, verify that your CPU has two or more timers.

The C6000 CPU Timer block does not support C64x processors.

Dialog Box

Timer no.

Select the timer to use from the list. Verify that the target offers a timer with the timer number you choose. Timer 0 is selected by default.

Timer period

Set the timer interrupt period in terms of CPU clock cycles.

Enter the timer period in clock cycles, either as an integer, fraction, decimal, or a variable in your workspace. 0 is the default value.

For example, to generate a periodic timer interrupt every second when the CPU clock operates at 720MHz, set Timer period to 720e6 clock cycles.

See Also

C5000/C6000 Hardware Interrupt, Idle Task

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS