English
Language : 

XC164-16 Datasheet, PDF (62/417 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC164-16 Derivatives
Peripheral Units (Vol. 2 of 2)
The General Purpose Timer Units
GPT2 Capture/Reload Register CAPREL in Capture-And-Reload Mode
Since the reload function and the capture function of register CAPREL can be enabled
individually by bits T5SC and T6SR, the two functions can be enabled simultaneously by
setting both bits. This feature can be used to generate an output frequency that is a
multiple of the input frequency.
Count
Clock
CAPIN
T3IN
T3EUD
Edge
Select
Edge
Select
0
MUX
1
CT3
Auxiliary
Timer T5
Clear
Up/Down
T5CLR
Capture
Capture
Correction
T5CC
T5SC
CAPREL
Register
T5IRQ
CI
CRIRQ
Count
Clock
Reload
Clear
T6SR
T6CLR
Core Timer T6
Toggle Latch
T6IRQ
T6OUT
Up/Down
T6OUF
to T5
MCA05412
Figure 14-31 GPT2 Register CAPREL in Capture-And-Reload Mode
This combined mode can be used to detect consecutive external events which may
occur aperiodically, but where a finer resolution, that means, more ‘ticks’ within the time
between two external events is required.
For this purpose, the time between the external events is measured using timer T5 and
the CAPREL register. Timer T5 runs in timer mode counting up with a frequency of e.g.
fGPT/32. The external events are applied to pin CAPIN. When an external event occurs,
User’s Manual
GPT_X41, V2.0
14-49
V2.1, 2004-03