Fujitsu F2MCTM-16LX Computer Hardware User Manual


 
258
CHAPTER 14 16-BIT RELOAD TIMER
[External gate input mode (MOD2 to MOD0="1x0
B
", "1x1
B
")]
When the external gate input mode is set, start the 16-bit reload timer by setting the software trigger bit in
the timer control status register (TMCSR:TRG) to 1. When the 16-bit reload timer is started, the value set
in the 16-bit reload register (TMRLR) is reloaded to the 16-bit timer register (TMR).
After the 16-bit reload timer is started, the count operation of the TMR is performed while the set gate
input level is inputted to the TIN pin.
The gate input level (High or Low) can be selected by setting the operating mode select bits in the timer
control status register (TMCSR:MOD2 to MOD0).
Figure 14.5-8 Count Operation in External Gate Input Mode (One-shot Mode)
Figure 14.5-9 Count Operation in External Gate Input Mode (Reload Mode)
0000
H
Reload data
T
*
-1 -1
-1-1
FFFF
H
T
*
Counter clock
Counter
Data load signal
UF bit
CNTE bit
TIN pin
TOT pin
T : Machine cycle
* : It takes 1 T time to load data of reload register from trigger input.
Reload data
Start trigger input wait
TRG bit
0000
H
Reload data
T
*
-1 -1 -1 -1 -1
Counter clock
Counter
Data load signal
UF bit
CNTE bit
TIN pin
TOT pin
T : Machine cycle
* : It takes 2T to 2.5T time to load data of reload register from trigger input.
Reload data
TRG bit