English
Language : 

XC87XCLM_11 Datasheet, PDF (103/145 Pages) Infineon Technologies AG – 8-Bit Single-Chip Microcontroller
XC87xCLM
Functional Description
3.17
Timer 0 and Timer 1
Timer 0 and Timer 1 can function as both timers or counters. When functioning as a
timer, Timer 0 and Timer 1 are incremented every machine cycle, i.e. every 2 input
clocks (or 2 PCLKs). When functioning as a counter, Timer 0 and Timer 1 are
incremented in response to a 1-to-0 transition (falling edge) at their respective external
input pins, T0 or T1.
Timer 0 and 1 are fully compatible and can be configured in four different operating
modes for use in a variety of applications, see Table 33. In modes 0, 1 and 2, the two
timers operate independently, but in mode 3, their functions are specialized.
Table 33
Mode
0
1
2
3
Timer 0 and Timer 1 Modes
Operation
13-bit timer
The timer is essentially an 8-bit counter with a divide-by-32 prescaler.
This mode is included solely for compatibility with Intel 8048 devices.
16-bit timer
The timer registers, TLx and THx, are concatenated to form a 16-bit
counter.
8-bit timer with auto-reload
The timer register TLx is reloaded with a user-defined 8-bit value in THx
upon overflow.
Timer 0 operates as two 8-bit timers
The timer registers, TL0 and TH0, operate as two separate 8-bit counters.
Timer 1 is halted and retains its count even if enabled.
Data Sheet
96
V1.5, 2011-03