User Manual
477
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
General Purpose Timer Units (GPT12)
Figure 111 Capture/Reload Register CAPREL in Capture Mode
When a selected trigger is detected, the contents of the auxiliary timer T5 are latched into register CAPREL and
the interrupt request line CRIRQ is activated. The same event can optionally clear timer T5 and/or timer T6.
This option is enabled by bit T5CLR in register T5CON and bit T6CLR in register T6CON, respectively. If
TxCLR = 0 the contents of timer Tx is not affected by a capture. If TxCLR = 1 timer Tx is cleared after the current
timer T5 value has been latched into register CAPREL.
Note:
Bit T5SC only controls whether or not a capture is performed. If T5SC is cleared the external input
pin(s) can still be used to clear timer T5 and/or T6, or as external interrupt input(s). This interrupt is
controlled by the CAPREL interrupt control register GPTM1IEN and GPTM1IRC.
When capture triggers T3IN or T3EUD are enabled (CT3 = 1), register CAPREL captures the contents of T5 upon
transitions of the selected input(s). These values can be used to measure T3’s input signals. This is useful, for
example, when T3 operates in Incremental Interface Mode, in order to derive dynamic information (speed,
acceleration) from the input signals.
For capture mode operation, the selected pins CAPIN, T3IN, or T3EUD must be configured as input. To ensure
that a transition of a trigger input signal applied to one of these inputs is recognized correctly, its level must
be held high or low for a minimum number of module clock cycles, detailed in
.
Signal
Select
Auxiliary
Timer T5
T5IRQ
MCA05410X11
Up/Down
Clear
T5CLR
T5SC
Capture
CAPREL
Register
T6CLR
0
1
MUX
CT3
CI
CAPIN
T3IN
T3EUD
Count
Clock
CRIRQ
Clear
T6
Edge
Select