Fujitsu F2MCTM-16LX Computer Hardware User Manual


 
254
CHAPTER 14 16-BIT RELOAD TIMER
14.5.1 Operation in Internal Clock Mode
In the internal clock mode, three operation modes can be selected by setting the
operating mode select bits in the timer control status register (TMCSR:MOD2 to
MOD0).When the operation mode and reload mode are set, a rectangular wave or a
toggle wave is outputted from the TOT pin.
Setting of Internal Clock Mode
By setting the count clock select bits (CSL1, CSL0) in the timer control status register to "00
B
", "01
B
"
and "10
B
", the 16-bit reload timer (TMRLR) is set to the internal clock mode.
In the internal clock mode, the 16-bit timer register (TMR) decrements in synchronization with the
internal clock.
In the internal clock mode, three count clock cycles can be selected by setting the count clock select bits
in the timer control status register (TMCSR:CSL1, CSL0).
[Setting a reload value to TMR]
After the 16-bit reload timer is started, the value set in the TMRLR is reloaded to the TMR.
1. Disables the timer operation (TMCSR:CNTE = 0).
2. Sets a reload value to the TMR in the TMRLR.
3. Enables the timer operation (TMCSR:CNTE = 1).
Note:
It takes 1 T (T: machine cycle (time) to load the value set in the TMRLR to the TMR after the start trigger
is inputted.