432
Chapter 12
16-bit Interval Timer Z (TMZ)
Preliminary User’s Manual U17566EE1V2UM00
(1)
TZnCTL - TMZn timer control register
The 8-bit TZnCTL register controls the operation of the Timer Z.
Access
This register can be read/written in 8-bit or 1-bit units.
Address
<base> + 6
H
Initial Value
00
H
. This register is cleared by any reset.
Note
Change bits TZnCTL.TZCKS[2:0] only when TZnCTL.TZCE = 0.
When TZnCTL.TZCE = 0, it is possible to select the clock and enable the
counter with one write operation.
7
6
5
4
3
2
1
0
TZCE
0
0
0
0
TZCKS2
TZCKS1
TZCKS0
R/W
R
R
R
R
R/W
R/W
R/W
Table 12-3
TZnCTL register contents
Bit position
Bit name
Function
7
TZCE
Timer Z counter enable:
0: Disable count operation (the timer stops immediately with the count value
0000
H
and does not operate).
1: Enable count operation (the timer starts when a non-zero start value is written
to the register TZnR after TZnCTL.TZCE=1).
2 to 0
TZCKS[2:0]
Selects the counter clock:
TZCKS2
TZCKS1
TZCKS0
Counter clock selection
0
0
0
PCLK2 (4 MHz)
0
1
0
PCLK4 (1 MHz)
0
1
1
PCLK5 (0.5 MHz)
1
0
0
PCLK7 (0.125 MHz)
1
0
1
PCLK9 (31.250 KHz)
Others than above
Setting prohibited
electronic components distributor