English
Language : 

XC167-16 Datasheet, PDF (169/442 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC167-16 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Unit 6 (CAPCOM6)
18.1.4 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.
There are a number of different modes for capture operation. In all modes, both of the
registers of a channel are used. This can reduce the interrupt rate to the CPU, as it needs
to react only to every second event. The selection of the capture modes is done via the
MSEL6x bitfields in register T12MSEL and can be selected individually for each of the
channels.
Table 18-3 Capture Modes Overview
MSEL6x Mode Pin
Active Edge
0100B
1
CC6x
CC6x
Rising
Falling
0101B
2
0110B
3
0111B
4
CC6x
CC6x
CC6x
Rising
Falling
Any
CC6nSR Stored in T12 Stored in
–
CC6xR
–
CC6xSR
CC6xR
CC6xSR
CC6xR
CC6xSR
CC6xR
CC6xSR
Figure 18-18 illustrates Capture Mode 1. When a rising edge (0-to-1 transition) is
detected at the corresponding input pin CC6x, the current contents of Timer T12 are
captured into register CC6xR. When a falling edge (1-to-0 transition) is detected at pin
CC6x, the contents of Timer T12 are captured into register CC6xSR.
f
Counter Register
T12
T12
MSEL6x
CC6x
Edge
Detect
MSEL6x
Select
Rising
Falling
Set
State Bit
CC6xST
Register CC6xR
Shadow Register
CC6xSR
Figure 18-18 Capture Mode 1 Block Diagram
To Interrupt Logic
MCB05522
User’s Manual
CAPCOM6_X, V2.0
18-24
V2.0, 2004-04