English
Language : 

XC164-16 Datasheet, PDF (173/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
Timer T13 Block
Timer T13 is implemented similarly to Timer T12, but only with one channel in compare
mode. A 16-bit up-counter is connected to a channel register via a comparator, which
generates a signal when the counter contents match the contents of the channel register.
A variety of control functions facilitate the adaptation of the T13 structure to different
application needs. In addition, T13 can be triggered synchronously to timer T12 events.
Timer T13
Logic
Compare
Channel 63
Control/Status Logic
State Bit
CC63ST
To Output
Modulation
MCA05526
Figure 18-22 Overview Diagram of the Timer T13 Block
Figure 18-23 shows a detailed block diagram of Timer T13. It receives its input clock,
fT13, from the module clock fCC6 via a programmable prescaler and an optional 1/256
divider. T13 can only count up (similar to the Edge-Aligned mode of T12).
Via a comparator, T13 is connected to a Period Register, T13PR. This register
determines the maximum count value for T13. When T13 reaches the period value,
signal T13_PM (T13 Period Match) is generated and T13 is reset to 0000H with the next
T13 clock edge. The Period Register receives a new period value from its Shadow
Period Register, T13PS, which is loaded via software. The transfer of a new period value
from the shadow register into T13PR is controlled via the ‘T13 Shadow Transfer’ control
signal, T13_ST. The generation of this signal depends on the associated control bit
STE13. Providing a shadow register for the period value as well as for other values
related to the generation of the PWM signal facilitates a concurrent update by software
for all relevant parameters (see also Section 18.8).
Another signal indicates whether the counter contents are equal to 0000H (T13_ZM).
A Single-Shot control bit, T13SSC, enables an automatic stop of the timer when the
current counting period is finished (see Figure 18-25).
User’s Manual
CAPCOM6_X, V2.0
18-29
V2.1, 2004-03