<< Click to Display Table of Contents >> Timer IRQ |
|
Use this block to generate Asynchronous Timer Interrupt. The Interrupt Service Routine (ISR) is called in a Function-Call Subsystem.
The time interval for each interrupt is set in the sampletime edit box.
This block uses the supplied sampletime information (in second) to set the PRESCALER and AUTORELOAD values of the selected timer.
One the time interval elapsed a function call signal is generated to call the attached Function-Call Subsystem.
Only basic timers (TIM2 - TIM7 and TIM9 - TIM14) are supported.
Only 16-bits counter mode is used, meaning the maximum time interval possible is determined from 4,294,836,225 / clock frequency (taking into account the prescaler). The maximum time interval is automatically computed and shown in the Sample time's MaskPrompt.