English
Language : 

XC164-16 Datasheet, PDF (176/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)
Capture/Compare Unit 6 (CAPCOM6)
18.2.1 T13 Operation
The input clock fT13 of Timer T13 is derived from the module clock fCC6 through a
programmable prescaler and an optional 1/256 divider. The resulting prescale factors
are listed in Table 18-5. The prescaler of T13 is reset while T13 is not running to ensure
reproducible timings and delays.
Table 18-5
T13CLK
000B
001B
010B
011B
100B
101B
110B
111B
Timer T13 Input Clock Options
Resulting Input Clock
Prescaler Off (T13PRE = 0)
fCC6/1
fCC6/2
fCC6/4
fCC6/8
fCC6/16
fCC6/32
fCC6/64
fCC6/128
Resulting Input Clock
Prescaler On (T13PRE = 1)
fCC6/256
fCC6/512
fCC6/1024
fCC6/2048
fCC6/4096
fCC6/8192
fCC6/16384
fCC6/32768
The period of the timer is determined by the value in the period Register T13PR
according to the following formula:
T13PER = <Period-Value> + 1; in T13 clocks (fT13)
(18.3)
While Timer T13 is running, write accesses to the count register T13 are not taken into
account. If T13 is stopped, write actions to register T13 are immediately taken into
account.
As described above, T13 can only count up, comparable to the Edge-Aligned mode of
T12. This leads to very simple ‘counting rules’ for the T13 counter:
• The counter is reset to zero with the next T13 clock edge if a Period-Match is
detected. The counting direction is always upwards.
The behavior of T13 is illustrated in Figure 18-24.
User’s Manual
CAPCOM6_X, V2.0
18-32
V2.1, 2004-03