English
Language : 

C508_01 Datasheet, PDF (132/267 Pages) Infineon Technologies AG – 8-Bit CMOS Microcontroller
C508
On-Chip Peripheral Components
Capture/Compare Channel Mode Select Registers
The capture/compare channels of the CAPCOM unit can operate individually either in
compare mode or in capture mode. The CMSEL0 and CMSEL1 registers contain the
mode select bits for the CAPCOM unit.
Special Function Register CMSEL0 (Address E3H)
Special Function Register CMSEL1 (Address E4H)
Reset Value: 00H
Reset Value: 00H
Bit No. MSB
LSB
7
6
5
4
3
2
1
0
E3H
CMSEL CMSEL CMSEL CMSEL CMSEL CMSEL CMSEL CMSEL
13
12
11
10
03
02
01
00
CMSEL0
CAPCOM
Channel 1
7
6
5
E4H ESMC NMCS 0
CAPCOM
Channel 0
4
3
2
1
0
0
CMSEL CMSEL CMSEL CMSEL
23
22
21
20
CMSEL1
CAPCOM
Channel 2
Bit
ESMC
NMCS
CMSELx3
x = 0-2
Function
Enable software controlled multi-channel PWM modes
If ESMC = 0, switching of the follower state in 4-/5-/6-phase multi-channel PWM
mode is controlled by Compare Timer 1 reaching its period value.
If ESMC = 1, switching of the follower state in 4-/5-/6-phase multi-channel PWM
mode is controlled by bit NMCS.
Next multi-channel PWM state
Setting bit NMCS (with ESMC set) will select the follower state in the
4/5/6-phase multi-channel PWM mode, which is taken into account at the output
pins, when Compare Timer 1 is 0. Bit NMCS is reset by hardware in the next clock
cycle after it has been set.
Switching Compare Timer 2 output signal to COUTx
If CMSELx3 is set and compare mode is selected for the outputs COUTx, the
output signal of the 10-bit Compare unit, typically a higher frequency signal, is
switched (modulated) to the COUTx pin. The state of the corresponding COINI bit
at the start of Compare Timer 1 defines the logic level of the CAPCOM channel
output signal at which the COMP output signal is output to COUTx.
COINI is set:
The COMP output is switched to COUTx during the low
phase of the CAPCOM channel X signal.
COINI is cleared: The COMP output is switched to COUTx during the high
phase of the CAPCOM channel X signal.
User’s Manual
6-67
2001-05