NEC V850E/Dx3 Preliminary User's Manual page 484

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 14
484
Downloaded from
Elcodis.com
electronic components distributor
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
. This register is cleared by any reset and when WTnCTL.WTCE = 0.
H
15
14
13
Note
1.
WTnR can only be written when WTnCTL.WTCE = 1 (counter enabled).
2.
The load value must be non-zero (0001
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.
Preliminary User's Manual U17566EE1V2UM00
12
11
10
9
8
7
Down-counter load value
R/W
H
Watch Timer (WT)
6
5
4
3
2
1
...FFFF
).
H
0

Advertisement

Table of Contents
loading

Table of Contents