|
|
|
Bean
TimerInt
|
Periodic interrupt
Parameters of the bean.
|
Properties:
-
Bean name - Name of the bean.
-
Timer - Periodic interrupt source: compare register, reload register, free running counter, time base counter function, RTI or bean RTIshared (the pull-down menu offers timer types).
Compare and reload registers generate interrupt on matching their value with the counter, free-running generates interrupt on the counter overflow. RTI and time base modul generate a periodic interrupt by dividing the crystal or system clock frequency.
-
Counter - Counter register of the timer (for information only).
-
Interrupt service/event - Bean uses the interrupt service for the timer function.
-
Interrupt - Interrupt vector invoked from the timer (for information only).
-
Interrupt priority - Priority of the interrupt associated with the timer.
-
Prescaler - Prescaler selected for the timer.
-
Internal prescaler - Internal prescaler value.
This item is valid only if the prescaler above is selected internal peripheral (such as for example timer) and this peripheral allows additional settings. This HW feature is supported only for several CPU architectures.
-
Internal compare - Internal compare prescaler value.
This item is valid only if the prescaler above is selected internal peripheral (such as for example timer) and this peripheral allows additional settings. This HW feature is supported only for several CPU architectures.
-
Interrupt period - Period/frequency of the interrupts generation. It is necessary to specify both a value and a unit (see Timing Setting Syntax). The setting can be made with the help of the Timing dialog box that gets open when clicking on button
(...).
-
Settings supported for HCS12 derivatives only.
-
Interval calculation method - Specifies which library will be used in SetPeriod... and SetFreq... methods to calculate a new value. This property is available only if 'Runtime setting type' is set to 'from time interval' in Timing dialog box.
There are 2 options:
- PE fixed point library: Fixed point arithmetic will be used. This library uses 64 bits operations.
- PE fast fixed point library: Fast fixed point arithmetic will be used. This library uses 32 bits operations that is much faster but precision may suffer.
-
Same period in modes - Period/frequency of the generated interrupts is exactly the same in all speed modes (high, low, slow). If you select 'Yes' the timing will be kept with a tolerance of one tick. If you select 'No' timing will be kept with setting precision only.
-
Bean uses entire timer - The bean can use every subsystem of the timer, more actions may be done by HW instead of SW but no other bean can share the timer.
-
Initialization - Initial settings (after power-on or reset).
-
CPU clock/speed selection - Settings for the CPU speed modes: if the bean is supported or not.
For details about speed modes please refer to page Speed Modes Support.
-
The following items are visible only if integration of Processor Expert with Simulink supported.
|
|
|
Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.
|
|
|