English
Language : 

C517A_99 Datasheet, PDF (92/218 Pages) Siemens Semiconductor Group – 8-Bit CMOS Microcontroller
On-Chip Peripheral Components
C517A
6.3.1 Timer 2 Operation
Timer 2 is one of the two 16-bit timer units of the capture/compare unit. It can operate as timer, event
counter, or gated timer. Prior to the description of the timer 2 operating modes and functions, the
timer 2 related special function registers are described.
6.3.1.1 Timer 2 Registers
Timer 2 is controlled by bits of the 5 special function register T2CON, CTCON, IEN0, IEN1, and
IRCON0. The related meaning of the timer 2 control bits and flags is shown below.
Special Function Register T2CON (Address C8H)
Special Function Register CTCON (Address E1H)
Special Function Register IEN0 (Address A8H)
Special Function Register IEN1 (Address B8H)
Special Function Register IRCON0 (Address C0H)
Reset Value : 00H
Reset Value : 0X000000B
Reset Value : 00H
Reset Value : 00H
Reset Value : 00H
Bit No.
C8H
MSB
CFH
T2PS
CEH
I3FR
CDH CCH CBH CAH
I2FR T2R1 T2R0 T2CM
C9H
T2I1
LSB
C8H
T1I0
T2CON
7
6
E1H T2PS1 –
5
4
3
2
1
0
ICR ICS CTF CLK2 CLK1 CLK0 CTCON
AFH AEH ADH ACH ABH AAH A9H A8H
A8H EAL WDT ET2 ES0 ET1 EX1 ET0 EX0 IEN0
B8H
BFH BEH
EXEN2 SWDT
BDH
EX6
BCH BBH BAH
EX5 EX4 EX3
B9H B8H
EX2 EADC
IEN1
C0H
C7H
EXF2
C6H C5H C4H C3H C2H C1H C0H
TF2 IEX6 IEX5 IEX4 IEX3 IEX2 IADC
IRCON0
The shaded bits are not used for timer/counter 2.
Semiconductor Group
6-26