English
Language : 

C509-L_97 Datasheet, PDF (142/290 Pages) Siemens Semiconductor Group – 8-Bit CMOS Microcontroller
On-Chip Peripheral Components
C509-L
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-33 shows the
complete compare mode 2 configuration of the CCU and the port 5 pins.
Timer II
Comparator
Comparator
COMSET
COMCLR
SETMSK
Bit 0
S
R
Q
Bit 1
S
R
Q
ICS
ICR
ECS
(IEN2.4)
ECS
(IEN2.5)
Int.
Request
Vector
00A3 H
Int.
Request
Vector
00AB H
Bit 2
Bit 7
S
R
Q
CLRMSK
Bit 0
Bit 1
Bit 2
Number
P5.0 of Pins
for this
P5.1 function is
selectable
from
1 to 8
by Bit
P5.7
COCOEN0-2
(in CC4EN).
Bit 7
MCB02249
Figure 6-33
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-64
1997-10-01