Timer Interrupt Block

How this block appears in a Simulink model?


What can be configured?

Configuration Parameter Selectable Option/Value Description
Timer group 0--1 Select timer group
Module 0--1 Select timer module
Advanced settings Check--Uncheck
Timer pre-scaler 2--4--8--16--32--64--128 How quickly the timer’s counter is “ticking”. This depends on the setting of divider, that will be used as divisor of the incoming 80 MHz APB_CLK clock.
Count direction Count up--Count down Sets if the counter should be incrementing or decrementing.
Alarm Enable--Disable Enable/Disable the alarm.
Alarm mode With reload--Without reload Set if the initial counter value should be reloaded on the timer’s alarm.
Interrupt interval (sec) Select the interrupt interval.

When to use this block?

This block can be used to set up an Interrupt Service Routine (ISR) that could be triggered by a built in TIMER module.

How does this block work?

Depending on the input trigger configuration, when the specified trigger conditions are met the block will output a logic ‘true’ signal that could activate a function call subsystem in Simulink.


Timer Interrupt demo

Previous : GPIO Interrupt Block
Next : UART Setup Block

Also available in: PDF HTML TXT