Fujitsu F2MC-16LX Hardware Manual page 410

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 16 16-BIT RELOAD TIMER
16-bit Reload Register 0 to 2 (TMRLR0 to TMRLR2)
Set the initial counter value to the registers TMRLR0 to TMRLR2 in the status the counter operation is
inhibited (CNTE = 0 for TMCSR0 to TMCSR2) regardless of the 16-bit reload timer operation. When the
counter operation is permitted (CNTE = 1 for TMCSR0 to TMCSR2) and the counter is started, the count
down is started from the value written in the registers TMRLR0 to TMCSR2. Values set in the registers
TMRLR0 to TMCSR2 are reloaded to the counter to continue the count down at the underflow occurrence
in the reload mode. In the one-shot mode, the counter stops at FFFF
Note:
Write the TMRLR0 to TMRLR2 register in the status the counter stops (CNTE = 0 for TMCSR0 to
TMCSR2).
In addition, always use the word transfer instruction (MOVW A 003AH, etc.) when writing.
The 16-bit timer register (TMRLR0 to TMRLR2) has a write-only function despite its location at the
same address as the read-only 16-bit reload register (TMR0 to TMR2). Therefore, since the read
value is the TMR0 to TMR2 value, instructions such as INC, DEC, etc. cannot be used to perform
the read-modify-write (RMW) operations.
394
when an underflow occurs.
H

Advertisement

Table of Contents
loading

Table of Contents