![](http://datasheet.mmic.net.cn/280000/M37754M8C-XXXGP_datasheet_16084055/M37754M8C-XXXGP_24.png)
24
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37754M8C-XXXGP, M37754M8C-XXXHP
M37754S4CGP, M37754S4CHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Pulse output function
When bit 2 of the timer Ai mode register is “1”, the output is gener-
ated from TAi
OUT
pin. The output is toggled each time the contents of
the counter reaches to 0000
16
. When the contents of the count start
bit is “0”, “L” is output from TAi
OUT
pin.
When bit 2 is “0”, TAi
OUT
can be used as a normal port pin. When bit
4 is “0”, TAi
IN
can be used as a normal port pin.
Gate function
When bit 4 is “1”, counting is performed only while the input signal
from the TAi
IN
pin is “H” or “L” as shown in Figure 20. Therefore, this
can be used to measure the pulse width of the TAi
IN
input signal.
Whether to count while the input signal is “H” or while it is “L” is de-
termined by bit 3. If bit 3 is “1”, counting is performed while the TAi
IN
pin input signal is “H” and if bit 3 is “0”, counting is performed while it
is “L”.
When bit 5 is “0, counting restarts from the value which is contained
at restarting (gate function 0 [no reload]) and an overflow occurs (n +
1) cycles of the count source later. Figure 21 shows that operation.
When bit 5 is “1”, counting restarts from the value which is obtained
by reload at restarting (gate function 1 [reload]) and the first overflow
occurs (n + 2) cycles of the count source later. Figure 22 shows that
operation. After that, while the input signal from the TAi
IN
pin keeps
valid level, an overflow occurs at (n + 1)- cycle intervals. Make sure
to set the value of 1 or more to n.
When gate functions are used, the duration of “H” or “L” on the TAi
IN
pin must be 2 or more cycles of the timer count source.
0 0 : Always “00” in timer mode
0 : No pulse output (TAi
OUT
is normal port pin)
1 : Pulse output
0
×
: No gate function (TAi
IN
is normal port pin)
1 0 : Count only while TAi
IN
input is “L”
1 1 : Count only while TAi
IN
input is “H”
0 : Gate function 0 (No reload)
1 : Gate function 1 (Reload) ; N
ote
Clock source select bit
0 0 : Select Pf
2
0 1 : Select Pf
16
1 0 : Select Pf
64
1 1 : Select Pf
512
Timer A0 mode register
Timer A1 mode register
Timer A2 mode register
Timer A3 mode register
Timer A4 mode register
7
0
0
6
5
4
3
2
1
0
Addresses
56
16
57
16
58
16
59
16
5A
16
Note:
When selecting no gate function (bit 4 = “0”) in timer mode, fix bit 5 to “0”.
Fig. 18 Timer Ai mode register bit configuration during timer mode