20. TIMER/WTIMER - Timer/Counter
4
3
2
1
0
TIMER
Counter
Capture values
Compare values
=
PRS
ADC
Output compare/PWM
Input capture
USART
Clock
Quick Facts
What?
The TIMER (Timer/Counter) keeps track of timing
and counts events, generates output waveforms,
and triggers timed actions in other peripherals.
Why?
Most applications have activities that need to be
timed accurately with as little CPU intervention and
energy consumption as possible.
How?
The flexible 16/32-bit timer can be configured to pro-
vide PWM waveforms with optional dead-time inser-
tion (e.g. motor control) or work as a frequency gen-
erator. The timer can also count events and control
other peripherals through the PRS, which offloads
the CPU and reduces energy consumption.
20.1 Introduction
The general purpose timer has 3 or 4 compare/capture channels for input capture and compare/Pulse-Width Modulation (PWM) output.
The TIMER and WTIMER peripherals are identical except for the timer width. A TIMER is 16-bits wide and a WTIMER is 32-bits wide.
Some timers also include a Dead-Time Insertion module suitable for motor control applications.
Refer to the device data sheet to determine the capabilities (capture/compare channel count and DTI) of each timer instance.
Reference Manual
TIMER/WTIMER - Timer/Counter
silabs.com
| Building a more connected world.
Rev. 1.1 | 651