English
Language : 

C517A_99 Datasheet, PDF (122/218 Pages) Siemens Semiconductor Group – 8-Bit CMOS Microcontroller
On-Chip Peripheral Components
C517A
6.3.4.5 Timer 2 Operating in Compare Mode 2
The compare mode 2 of the CCU can be used for the concurrent compare output function at port 5.
In compare mode 2, the port 5 pins are no longer general purpose I/O pins or under control of the
compare/capture register CC4, but under control of the compare registers COMSET and COMCLR.
The details of compare mode 2 are already described in section 6.3.3.3. Figure 6-29 shows the
complete compare mode 2 configuration of the CCU and the port 5 pins.
Timer 2
Comparator
COMSET
Comparator
COMCLR
ICS
ICR
ECS
(IEN2.4)
ECS
(IEN2.5)
Int.
Request
Vector
00A3 H
Int.
Request
Vector
00AB H
SETMSK
Bit 0
Bit 1
Bit 2
~~
~~
Bit 7
CLRMSK
Bit 0
Bit 1
Bit 2
~~
~~
Bit 7
S
RQ
S
R
Q
S
R
Q
P5.0 Number
of Pins
for this
P5.1 function is
selectable
from
1 to 8
by Bit
COCONO-2
P5.7 (in CC4EN).
MCB02249
Figure 6-29
Compare Mode 2 (Port 5 only)
The compare registers COMSET and COMCLR have their dedicated interrupt vectors. The
corresponding request flags are ICS for register COMSET and ICR for register COMCLR. The flags
are set by a match in registers COMSET and COMCLR, when enabled. As long as the match
condition is valid the request flags can’t be reset (neither by hardware nor software). The request
flags are located in SFR CTCON.
Semiconductor Group
6-56