430
Chapter 12
16-bit Interval Timer Z (TMZ)
Preliminary User’s Manual U17566EE1V2UM00
12.1.1
Description
The TMZ has no external connections. It is built up as illustrated in the
following figure.
Figure 12-1
Block diagram of Timer Z (TMZn)
The control register TZnCTL allows you to choose the clock and to enable the
timer. The latter is done by setting TZnCTL.TZCE to 1.
As soon as the timer is enabled, it is possible to write a start value to the reload
register TZnR.
12.1.2
Principle of operation
When it is enabled, the counter starts as soon as a non-zero value is written to
the reload register TZnR and copied to the reload buffer.
When the counter reaches zero, it generates an INTTZnUV interrupt, reloads
its start value from the reload buffer, and continues counting.
Two read-only registers (TZnCNT0 and TZnCNT1) provide the updated
counter value. For details about these registers please refer to
“TZnCNT0 -
TMZn synchronized counter register“ on page 433
and
“TZnCNT1 - TMZn
non-synchronized counter register“ on page 433
.
S
elector
16-
b
it down co
u
nter
TZnCNT
TZnR
Relo
a
d
bu
ffer
TZnCTL.TZCE
PCLK4 (1 MHz)
PCLK7 (125 KHz)
PCLK9 (
3
1.250 KHz)
PCLK2 (4 MHz)
PCLK5 (0.5 MHz)
TZCK
S
2
TZnCTL
TZCK
S
1 TZCK
S
0
Intern
a
l
bus
INTTZnUV
TZnCNT0
TZnCNT1
electronic components distributor