User Manual
496
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Timer2 and Timer21
17
Timer2 and Timer21
This chapter describes the Timer2 and Timer21. Each timer is a 16-bit timer which additionally can function as
a counter. Each Timer 2 module also provides a single channel 16-bit capture.
17.1
Features
• 16-bit auto-reload mode
– selectable up or down counting
• One channel 16-bit capture mode
• Baud-rate generator for U(S)ART
17.2
Introduction
Two functionally identical timers are implemented: Timer 2 and 21. The description refers to Timer 2 only, but
applies to Timer 21 as well.
The timer modules are general purpose 16-bit timer. Timer 2 can function as a timer or counter in each of its
modes. As a timer, it counts with an input clock of
f
sys
/12 (if prescaler is disabled). As a counter, Timer 2 counts
1-to-0 transitions on pin T2. In the counter mode, the maximum resolution for the count is
f
sys
/24 (if prescaler
is disabled).
Note:
“Timer 2” is generally referred in the following description which is applicable to each of the Timer2
and Timer21.
17.2.1
Timer2 and Timer21 Modes Overview