English
Language : 

C868_02 Datasheet, PDF (63/244 Pages) Infineon Technologies AG – 8 - Bit CMOS Microcontroller
C868
On-Chip Peripheral Components
4.6
Functional Description of Timer/Counter 2
Timer two serves as a 16-bit timer/counter for which is also capable of being used as a
baudrate generator for the UART module.
4.6.1 Features
• 16-bit auto-reload mode
– selectable up or down counting
• one channel 16-bit capture mode
• Baudrate generator for UART
• Timer/counter powerdown in normal, idle and slow-down modes
4.6.2 Overview
Timer 2 is a 16-bit general purpose timer/counter which can additionally function as a
baudrate generator. This module is functionally compatible to the Timer 2 in the C501
product family.
Timer/counter 2 can function as a timer or counter in each of its modes. As a timer, it
counts with an input clock of fSYS/12. As a counter, it counts 1-to-0 transitions on pin T2.
In the counter mode the maximum resolution for the count is fSYS/24.
4.6.3
Register Description
The T2CON register is used for controlling the various modes of timer/counter 2 module.
Additionally, this register also indicates the status of the timer/counter 2 functions (flags).
T2MOD
Timer 2 Mode Register,Low Byte
[Reset value: 00H]
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
DCEN
r
r
r
r
r
r
r
rw
Field
DCEN
-
Bits Typ Description
0
rw Up/Down Counter Enable
0 :Up/Down Counter function is disabled
1 :Up/Down Counter function is enabled and
controlled by pin T2EX
(Up=1,Down=0)
[7:6] r
reserved;
returns ’0’ if read; should be written with ’0’;
User’s Manual
4-19
V 0.4, 2002-01