4 16-bit reload registers (tmrlr), Bit reload registers (tmrlr) – FUJITSU F2MCTM-16LX User Manual
Page 266

250
CHAPTER 14 16-BIT RELOAD TIMER
14.3.4
16-bit Reload Registers (TMRLR)
The 16-bit reload registers set the value to be reloaded to the 16-bit timer register
(TMR). When the start trigger is inputted, the value set in the 16-bit reload registers is
reloaded to the TMR, starting the TMR count operation.
■
16-bit Reload Registers (TMRLR)
Figure 14.3-6 16-bit Reload Registers (TMRLR)
Set the 16-bit reload registers after disabling the timer operation (TMCSR:CNTE = 0). After completing
setting of the 16-bit reload registers, enable the timer operation (TMCSR:CNTE = 1).
When the start trigger is inputted, the value set in the TMRLR is reloaded to the TMR, starting the TMR
count operation.
Notes:
•
Perform a write to the TMRLR after disabling the operation of the 16-bit reload timer (TMCSR:CNTE =
0). Always use the word instruction (MOVW).
•
The TMRLR and the TMR are assigned to the same address. At write, the set value can be written to the
TMRLR without affecting the TMR. At read, the TMR value being counted is read.
•
Instructions, such as the INC/DEC instruction, which provide the read modify write (RMW) operation
cannot be used.
W
W
W
W
W
W
W
W
D11
D8
D9
D10
D15
D12
D13
D14
W
W
W
W
W
W
W
W
D3
D0
D1
D2
D7
D4
D5
D6
XXXXXXXX
B
XXXXXXXX
B
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TMRLR2 : 00794D
H
TMRLR3 : 00794F
H
TMRLR2 : 00794C
H
TMRLR3 : 00794E
H
Address:
Reset value
W
: Write only
X
: Undefined
Reset value
Address: