16-Bit Reload Registers (Tmrlr) - Fujitsu F2MCTM-16LX Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

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)
Address:
TMRLR2 : 00794D
TMRLR3 : 00794F
Address:
TMRLR2 : 00794C
TMRLR3 : 00794E
W
: Write only
X
: Undefined
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.
250
Figure 14.3-6 16-bit Reload Registers (TMRLR)
15
14
13
12
H
D15
D14
D13
D12
H
W
W
W
W
7
6
5
H
D7
D6
D5
H
W
W
W
11
10
9
8
D11
D10
D9
D8
W
W
W
W
4
3
2
1
0
D4
D3
D2
D1
D0
W
W
W
W
W
Reset value
XXXXXXXX
B
Reset value
XXXXXXXX
B

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90360 series

Table of Contents