16-Bit Reload Registers (Tmrlr0, Tmrlr1) - Fujitsu MB90895 Series Hardware Manual

16 bit, controller manual
Table of Contents

Advertisement

CHAPTER 8 16-bit reload timer
8.3.4

16-bit Reload Registers (TMRLR0, TMRLR1)

The 16-bit reload registers (TMRLR0, TMRLR1) set the value to be reloaded to the 16-bit
timer register (TMR).When the start trigger is input, the value set in the 16-bit reload
registers (TMRLR0, TMRLR1) is reloaded to the TMR, starting the TMR count operation.
I 16-bit Reload Registers (TMRLR0, TMRLR1)
TMRLR0
TMRLR1
TMRLR0
TMRLR1
W
: Write only
X
: Undefined
Set the 16-bit reload registers (TMRLR0, TMRLR1) after disabling the timer operation (TMCSR: CNTE =
0).After completing setting of the 16-bit reload registers (TMRLR0, TMRLR1), enable the timer operation
(TMCSR: CNTE = 1).
When the start trigger is input, 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.
260
Figure 8.3-6 16-bit Reload Registers (TMRLR0, TMRLR1)
15
14
13
D15
D14
D13
W
W
W
7
6
D7
D6
W
W
12
11
10
9
D12
D11
D10
D9
W
W
W
W
5
4
3
2
D5
D4
D3
D2
D1
W
W
W
W
W
8
Reset value
D8
XXXXXXXX
B
W
1
0
Reset value
D0
XXXXXXXX
B
W

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lx

Table of Contents