Timer IRQ

<< Click to Display Table of Contents >>

Navigation:  STM32F4 Target > Block References > On-chip Peripherals > TIM >

Timer IRQ

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

timer_irq

What can be configured?

Basic Mode

timer_irqmask_basic

Advanced Mode

timer_irqmask_advanced

When to use this block?

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.

How does this block work?

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.

Limitations

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.

Demos

1.Timer IRQ