C509-L_97 SIEMENS [Siemens Semiconductor Group], C509-L_97 Datasheet - Page 128

no-image

C509-L_97

Manufacturer Part Number
C509-L_97
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
6.3.4.1 Timer 2 - Compare Function with Registers CRC, CC1 to CC3
The compare function of registers CRC and CC1 to CC3 is completely compatible with the
corresponding function of the SAB 80C515. Registers CRC, CC1 to CC3 are permanently
connected to timer 2. All four registers are multifunctional as they additionally provide a capture or
a reload capability (CRC register only).
A general selection of the compare/capture function is done in register CCEN. For compare function
they can be used in compare mode 0 or 1, respectively. The compare mode is selected by setting
or clearing bit T2CM in special function register T2CON. Always two bits in register CCEN select
the CRC and CC1 to CC3 register functionality in the following way:
Special Function Register T2CON (Address C8 H )
Special Function Register CCEN (Address C1 H )
Bit
T2CM
COCAH3,
COCAL3
Semiconductor Group
– Disable compare/capture mode (normal I/O at the pin)
– Capture enabled on rising edge at a pin
– Compare enabled (pin becomes a compare output)
– Capture enabled on a write operation into the low part register of CRC or CC1 to CC3
Bit No.
C1 H
C8 H
The shaded bits are not used for compare/capture control.
COCAH3
T2PS
MSB
CF
7
H
COCAL3 COCAH2 COCAL2 COCAH1 COCAL1 COCAH0 COCAL0
I3FR
Function
Compare mode control for CCR and CC1 to CC3 registers
When T2CM is cleared, compare mode 0 is selected.
When T2CM is set, compare mode 1 is selected.
Compare/capture mode for the CC register 3
CE
COCAH3
0
0
1
1
6
H
I2FR
CD
5
H
COCAL3
0
1
0
1
T2R1
CC
4
6-50
H
T2R0
Mode
Compare/capture disabled
Capture on rising edge at pin P1.3/INT6/CC3
Compare enabled
Capture on write operation into register CCL3
CB
3
On-Chip Peripheral Components
H
T2CM
CA
2
H
T2I1
C9
1
H
LSB
T1I0
C8
0
Reset Value : 00 H
Reset Value : 00 H
H
CCEN
T2CON
1997-10-01
C509-L

Related parts for C509-L_97