Timers
Use the timer module and its parameters to configure the interrupts.
Timer group
Select the timer group to configure the timer parameters.
Settings
Default:
Advanced Timers 1/8
General Purpose 2/3/4/5
Basic Timers 6/7
General Purpose 9/10/11/12/13/14
Show TIM# configurations
Select the timer to configure the timer parameters.
Settings
Default:
off
on
Start timer during model initialization
Enable Start Timer during model initialization
parameter to
start the counter during model initialization.
The starting of counter for any timer module is initiated only if any of the Timer, Timer capture, Encoder or PWM Output block are available in the model for that timer module
To start/stop the counter in runtime, disable the Start Timer during
model initialization
parameter and select Enable Counter
Input
parameter in the block. An input of 1
to the
corresponding input will start the counter and 0
will stop the
counter.
.
Settings
Default:
on
off
Enable Trigger Interrupt
Select this parameter to enable trigger interrupt for the selected timer module.
Settings
Default:
off
on
Enable Capture Compare # Interrupt
Select this parameter to enable capture compare interrupt for the selected timer module.
Settings
Default:
off
on
Enable Update Interrupt
Select this parameter to enable update interrupt for the selected timer module.
Settings
Default:
off
on
Enable Break Interrupt
Select this parameter to enable break interrupt for the selected timer module.
Settings
Default:
off
on
Enable Commutation Interrupt
Select this parameter to enable commutation interrupt for the selected timer module.
Settings
Default:
off
on
Enable Index Interrupt
Select this parameter to enable index interrupt for the selected timer module.
Settings
Default:
off
on
Enable Direction Interrupt
Select this parameter to enable direction interrupt for the selected timer module.
Settings
Default:
off
on
Enable Transition Error Interrupt
Select this parameter to enable transition error interrupt for the selected timer module.
Settings
Default:
off
on
Enable Index Error Interrupt
Select this parameter to enable index error interrupt for the selected timer module.
Settings
Default:
off
on