English
Language : 

C508_01 Datasheet, PDF (133/267 Pages) Infineon Technologies AG – 8-Bit CMOS Microcontroller
C508
On-Chip Peripheral Components
Bit
CMSELx2- 0
x = 0-2
Function
CAPCOM Capture/Compare mode enable bits
The CMSEL registers are used to select/enable the operating mode and the
output/input pin configuration of the capture/compare channels. Each CAPCOM
channel can be programmed individually for either compare or capture operation.
CMSEL CMSEL CMSEL Mode
x2
x1
x0
0
0
0
Compare outputs disabled;
No compare output signal is generated; CCx and
COUTx are normal I/O pins.
0
0
1
Compare output on pin CCx enabled;
COUTx is normal I/O pin.
0
1
0
Compare output on pin COUTx enabled;
CCx is normal I/O pin.
0
1
1
Compare outputs on pins CCx and COUTx
enabled.
1
0
0
Capture mode enabled; signal transitions at CCx
do not generate a capture event. COUTx is a
normal I/O pin or analog input pin.
1
0
1
Capture mode enabled; CCx is configured as a
Capture input and a rising edge at CCx transfers
compare timer 1 content into the capture register.
COUTx is a normal I/O pin or analog input pin.
1
1
0
Capture mode enabled; CCx is configured as a
Capture input and a falling edge at CCx transfers
compare timer 1 content into the capture register.
COUTx is a normal I/O pin or analog input pin.
1
1
1
Capture mode enabled; CCx is configured as a
capture input. Rising and falling edge at CCx
transfer the compare timer 1 content into the
capture register. COUTx is a normal I/O pin or
analog input pin.
Note: Only CC0/COUT0 can be analog inputs if not selected as compare output.
In compare mode, the two output signals of a CAPCOM channel can be enabled
selectively. In capture mode, the type of signal transition which will generate a capture
event can be chosen.
User’s Manual
6-68
2001-05