English
Language : 

C508_01 Datasheet, PDF (143/267 Pages) Infineon Technologies AG – 8-Bit CMOS Microcontroller
C508
On-Chip Peripheral Components
6.3.3 Compare (COMP) Unit Operation
The Capture/Compare Unit of the C508 also provides a 10-bit Compare Unit (COMP)
which operates as a single channel pulse generator with a pulse width modulated output
signal. This output signal is available at the output pin COUT3 of the C508. In the
combined multi-channel PWM modes and in burst mode of the CAPCOM unit the output
signal of the COMP unit can also be switched to the output signals COUTx or CCx.
Figure 6-32 shows the block diagram and the pulse generation scheme of the COMP
unit (for example: the initial value of COUT3 is set to 0).
Compare Registers
CMP2H/CMP2L
To CAPCOM
Output Control
COUTXI
(COINI.6)
2fOSC Programmable
Prescaler
Period Registers
CP2H/CP2L
Comparator
Match
Pulse
Generation
Port
Pin
COUT3
Compare Timer 2
10-Bit Up Counter
COUT3I
(COINI.7)
Control Register
CT2CON
ECT20
CT2 Value
CP2H/CP2L
CMP2H/CMP2L
Reset of CT2
Start of CT2
Time
0
0
0
COUT3
(COUT3I = 0)
COUT3
(COUT3I = 1)
MCB04069
Figure 6-32 COMP Unit: Block Diagram and Pulse Generation Scheme
User’s Manual
6-78
2001-05