English
Language : 

TLE9869QXA20_15 Datasheet, PDF (56/122 Pages) Infineon Technologies AG – Microcontroller with LIN and H-Bridge MOSFET Driver for Automotive Applications
17
Timer3
TLE9869QXA20
Timer3
17.1
Features
• 16-bit incremental timer/counter (counting up)
• Counting frequency up to fsys
• Selectable clock prescaler
• 6 modes of operation
• Interrupt up on overflow
• Interrupt on compare
17.2
Introduction
The possible applications for the timer include measuring the time interval between events, counting events and
generating a signal at regular intervals.
Timer3 can function as timer or counter. When functioning as a timer, Timer3 is incremented in periods based on
the MI_CLK or LP_CLK clock. When functioning as a counter, Timer3 is incremented in response to a 1-to-0
transition (falling edge) at its respective input. Timer3 can be configured in four different operating modes to use
in a variety of applications, see Table 12.
Several operating modes can be used for different tasks such as the following:
• simple time measurement between two events
• triggering of the measuring unit upon PWM/CCU6 unit
• measurement of the 100kHz LP_CLK2
17.3
Functional Description
Six modes of operation are provided to fulfill various tasks using this timer. In every mode the clocking source can
be selected between MI_CLK and LP_CLK. A prescaler provides in addition capability to divide the selected clock
source by 2, 4 or 8. The timer counts upwards, starting with the value in the timer count registers, until the
maximum count value which depends on the selected mode of operation. Timer 3 provides two individual
interrupts upon counter overflow, one for the low-byte and one for the high-byte counter register.
17.3.1 Timer3 Modes Overview
The following table provides an overview of the timer modes together with the reasonable configuration options in
Table 12.
Table 12 Timer3 Modes
Mode
Sub-
Mode
Operation
0
No Sub- 13-bit Timer
Mode
The timer is essentially an 8-bit counter with a divide-by-32 prescaler.
1
a
16-bit Timer
The timer registers, TL3 and TH3, are concatenated to form a 16-bit counter.
1
b
16-bit Timer triggered by an event
The timer registers, TL3 and TH3, are concatenated to form a 16-bit counter, which is
triggered by an event to enable a single shot measurement on a preset channel with the
measurement unit.
Data Sheet
56
Rev. 1.0, 2015-04-30