User Manual
532
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Capture/Compare Unit 6 (CCU6)
18.3.5
T12 Capture Modes
Each of the three channels of the T12 Block can also be used to capture T12 time information in response to
an external signal CC6xIN.
In capture mode, the interrupt event CC6x_R is detected when a rising edge is detected at the input CC6xIN,
whereas the interrupt event CC6x_F is detected when a falling edge is detected.
There are a number of different modes for capture operation. In all modes, both of the registers of a channel
are used. The selection of the capture modes is done via the T12MSEL.MSEL6x bit fields and can be selected
individually for each of the channels.
illustrates
Capture Mode 1
. When a rising edge (0-to-1 transition) is detected at the corresponding
input signal CC6xIN, the current contents of Timer T12 are captured into register CC6xR. When a falling edge
(1-to-0 transition) is detected at the input signal CC6xIN, the contents of Timer T12 are captured into register
CC6xSR.
Figure 137 Capture Mode 1 Block Diagram
Capture Modes 2, 3 and 4
are shown in
. They differ only in the active edge causing the capture
operation. In each of the three modes, when the selected edge is detected at the corresponding input signal
CC6xIN, the current contents of the shadow register CC6xSR are transferred into register CC6xR, and the
current Timer T12 contents are captured in register CC6xSR (simultaneous transfer). The active edge is a rising
edge of CC6xIN for Capture Mode 2, a falling edge for Mode 3, and both, a rising or a falling edge for Capture
Mode 4, as shown in
. These capture modes are very useful in cases where there is little time
between two consecutive edges of the input signal.
Table 281 Capture Modes Overview
MSEL6x
Mode
Signal
Active Edge
CC6nSR Stored in
T12 Stored in
0100
B
1
CC6xIN
Rising
–
CC6xR
CC6xIN
Falling
–
CC6xSR
0101
B
2
CC6xIN
Rising
CC6xR
CC6xSR
0110
B
3
CC6xIN
Falling
CC6xR
CC6xSR
0111
B
4
CC6xIN
Any
CC6xR
CC6xSR
CCU6_MCB05522
f
T12
Edge
Detect
Capture
Mode
Selection
State Bit
CC6xST
CC6xIN
To Interrupt Logic
Set
Rising
Falling
Shadow Register
CC6xSR
Register CC6xR
Counter Register
T12
MSEL6x
CC6x_R
CC6x_F
f
CC6