Fujitsu F2MC-16LX Hardware Manual page 406

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

Advertisement

CHAPTER 16 16-BIT RELOAD TIMER
[bit 9 to bit 7] MOD2, MOD1, MOD0
This bit is used to set the operation mode and the I/O terminal functions. The input terminal functions as
a trigger at MOD2=0. When the active edge is input to the input terminal and the count operation
proceeds, the content of the reload register is loaded to the counter. When the MOD2 value is "1", the
timer operates in the gate counter mode and the input terminal functions as the gate input. In this mode,
the counter operates only while the active level is being input to the input terminal.
The internal clock mode and the event counter mode are selected from the modes shown in Table 16.2-1
and Table 16.2-2 by combining the bits from MOD2 to MOD0.
Table 16.2-1 Internal Clock Mode (CSL1, CSL0 = "00", "01" or "10")
MOD2
0
0
0
0
1
1
Table 16.2-2 Event Counter Mode (CSL1, CSL0 = "11")
MOD2
X
X
X
X
[bit 6] OUTE (power output permission)
The power output permission is controlled.
The TOT0 to TOT2 pin functions as the general-purpose port and the timer output terminal when "0"
and "1" are provided, respectively. The output waveform becomes a toggle waveform in the reload
mode. In the one-shot mode, the TOT0 to TOT2 pin outputs a short-shape wave which indicates the
proceeding count operation.
OUTE
0
1
390
MOD1
MOD0
Input Pin function
0
0
Trigger invalidity
0
1
1
0
Trigger input
1
1
X
0
Gate input
X
1
MOD1
MOD0
Input Pin function
0
0
Trigger invalidity
0
1
1
0
Trigger input
1
1
General-purpose port [Initial value]
Timer output
Active edge or level
- [Initial value]
Rising edge
Falling edge
Both edges
"L" level
"H" level
Active edge or level
- [Initial value]
Rising edge
Falling edge
Both edges
Function

Advertisement

Table of Contents
loading

Table of Contents