English
Language : 

XC164CS Datasheet, PDF (34/71 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller
XC164
Derivatives
Functional Description
fS Y S
T2IN
T2EUD
fS Y S
T3IN
T3EUD
fS Y S
T4IN
T4EUD
2n : 1
2n : 1
G PT1 Tim er T2
T2
Mode
C o n tro l
U/D
R eloa d
C ap tu re
T3
Mode
C o n tro l
G PT1 Tim er T3
U/D
Toggle FF
T3OTL
Interrupt
Request
(T 2 IR )
Interrupt
Request
(T 3 IR )
T6OUT
2n : 1
C ap tu re
R eloa d
T4
Mode
C o n tro l
G PT1 Tim er T4
U/D
Interrupt
Request
(T 4 IR )
n = 2 … 12
M ct04825_xc.vsd
Figure 7 Block Diagram of GPT1
With its maximum resolution of 2 system clock cycles, the GPT2 module provides
precise event control and time measurement. It includes two timers (T5, T6) and a
capture/reload register (CAPREL). Both timers can be clocked with an input clock which
is derived from the CPU clock via a programmable prescaler or with external signals. The
count direction (up/down) for each timer is programmable by software or may
additionally be altered dynamically by an external signal on a port pin (TxEUD).
Concatenation of the timers is supported via the output toggle latch (T6OTL) of timer T6,
which changes its state on each timer overflow/underflow.
The state of this latch may be used to clock timer T5, and/or it may be output on pin
T6OUT. The overflows/underflows of timer T6 can additionally be used to clock the
CAPCOM1/2 timers, and to cause a reload from the CAPREL register.
The CAPREL register may capture the contents of timer T5 based on an external signal
transition on the corresponding port pin (CAPIN), and timer T5 may optionally be cleared
Data Sheet
30
V2.1, 2003-06