IRQ

TIM IRQ BLOCK

This block supports IRQ generation by Timer peripheral on STM microcontrollers.

Contents

Inputs

None

Outputs

  • IRQ – interrupt signal

Block parameters

  • Timer – number of timer peripheral
  • Timer clock (MHz) – timer base clock
  • Prescaler – timer clock prescale (timer clock is base/prescaler)
  • Period (sec) – time interval of IRQ generation

CubeMX settings

  • Timers->TIMx->Clock Source->Internal clock
  • Timers->TIMx->NVIC Settings Tab->TIMx global interrupt/TIMx update interrupt