436
Chapter 12
16-bit Interval Timer Z (TMZ)
Preliminary User’s Manual U17566EE1V2UM00
12.3.2
Timer start and stop
The timer TZn is enabled by setting TZnCTL.TZCE to 1.
Start
The subsequent write access to register TZnR with non-zero data starts the
timer. After that, it is prepared to load the value written to register TZnR into the
reload buffer and the counter.
The following interval times are given in periods of PCLK2.
If PCLK2 is chosen as the counter clock ([TZnCTL.TZCKS] = 0), the first and
all following interrupts occur after
T
interval
= ([TZnR] + 1)
where
[TZnR] = contents of register TZnR
An uncertainty exists for the first interval length, if a clock with a lower
frequency is chosen ([TZnCTL.TZCKS] > 0):
([TZnR] + 1)
×
2
[TZCKS]
≤
T
interval
≤
([TZnR] + 2)
×
2
[TZCKS]
where
[TZnR] = contents of register TZnR
[TZCKS] = contents of TZnCTL.TZCKS[2:0]
All following interrupts occur after:
T
interval
= ([TZnR] + 1)
×
2
[TZCKS]
Stop
The timer stops when TZnCTL.TZCE is cleared. This write access is not
synchronized. The timer is immediately stopped, and its registers are reset.
electronic components distributor