484
Chapter 14
Watch Timer (WT)
Preliminary User’s Manual U17566EE1V2UM00
Reading the counter value via WTnCNT1 instead of WTnCNT0 is only
reasonable when the CPU clock is remarkably higher than WTCLK and the
overhead of multiple reading WTnCNT1 is justifiable.
(4)
WTnR - WTn reload register
The WTnR register is a dedicated register for setting the reload value of the
corresponding counter.
Access
This register can be read/written in 16-bit units.
Address
<base> + 4
H
Initial Value
0000
H
. This register is cleared by any reset and when WTnCTL.WTCE = 0.
Note
1.
WTnR can only be written when WTnCTL.WTCE = 1 (counter enabled).
2.
The load value must be non-zero (0001
H
…FFFF
H
).
3.
The contents of this register is automatically copied to the reload buffer.
The counters load their values from the respective buffers at underflow.
To ensure correct operation, this register shall not be written twice within
three cycles of the counter clock. A second write attempt within that time
span is ignored.
4.
The value read from WTnR is the target start value. It is not necessarily
identical with the current start value that is stored in the reload buffer. The
buffer may not yet be updated.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Down-counter load value
R/W
electronic components distributor