Timer

Purpose

Generate trigger signals for the ADC start-of-conversion and the control task using a general-purpose timer

Library

STM32

Description

../../_images/timer.svg

The Timer block configures the general-purpose timers TIM3 or TIM4, to generate an interrupt at the specified frequency. The timer interrupt can be used to trigger the ADC start-of-conversion or the Control Task Trigger.

The exact timer frequency may not be achievable based on the system clock frequency. The Frequency tolerance parameter allows automatically rounding to the closest achievable value when the exact timer frequency is unachievable.

Parameters

Frequency

Defines the frequency of the timer in hertz \((\mathrm{Hz})\).

Frequency tolerance

Specifies the behavior when the desired timer frequency is not achievable.