Fujitsu F2MCTM-16LX Computer Hardware User Manual


 
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.
WWWWWWWW
D11 D8D9D10D15 D12D13D14
WWWWWWWW
D3 D0D1D2D7 D4D5D6
XXXXXXXX
B
XXXXXXXX
B
15 14 13 12 11 10 9 8
76543210
T
MRLR2 : 00794DH
T
MRLR3 : 00794FH
T
MRLR2 : 00794CH
T
MRLR3 : 00794EH
Address: Reset value
W : Write only
X : Undefined
Reset valueAddress: