參數(shù)資料
型號(hào): M38B45EDH-XXXXFP
廠(chǎng)商: Mitsubishi Electric Corporation
英文描述: SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
中文描述: 單芯片8位CMOS微機(jī)
文件頁(yè)數(shù): 23/78頁(yè)
文件大?。?/td> 1214K
代理商: M38B45EDH-XXXXFP
23
38B4 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
TIMERS
8-Bit Timer
The 38B4 group has six built-in timers : Timer 1, Timer 2, Timer 3,
Timer 4, Timer 5, and Timer 6.
Each timer has the 8-bit timer latch. All timers are down-counters.
When the timer reaches “00
16
”, an underflow occurs with the next
count pulse. Then the contents of the timer latch is reloaded into the
timer and the timer continues down-counting. When a timer
underflows, the interrupt request bit corresponding to that timer is
set to “1”.
The count can be stopped by setting the stop bit of each timer to “1”.
The internal system clock can be set to either the high-speed mode
or low-speed mode with the CPU mode register. At the same time,
timer internal count source is switched to either f(X
IN
) or f(X
CIN
).
G
Timer 1, Timer 2
The count sources of timer 1 and timer 2 can be selected by setting
the timer 12 mode register. A rectangular waveform of timer 1 under-
flow signal divided by 2 can be output from the P4
5
/T
1OUT
pin. The
active edge of the external clock CNTR
0
can be switched with the bit
6 of the interrupt edge selection register.
At reset or when executing the STP instruction, all bits of the timer 12
mode register are cleared to “0”, timer 1 is set to “FF
16
”, and timer 2
is set to “01
16
”.
G
Timer 3, Timer 4
The count sources of timer 3 and timer 4 can be selected by setting
the timer 34 mode register. A rectangular waveform of timer 3 under-
flow signal divided by 2 can be output from the P4
6
/T
3OUT
pin. The
active edge of the external clock CNTR
1
(Note)
can be switched with
the bit 7 of the interrupt edge selection register.
Note:
In the mask option type P, CNTR
1
function cannot be used.
G
Timer 5, Timer 6
The count sources of timer 5 and timer 6 can be selected by setting
the timer 56 mode register. A rectangular waveform of timer 6 under-
flow signal divided by 2 can be output from the P4
4
/PWM
1
pin.
(1) Timer 6 PWM
1
mode
Timer 6 can output a PWM rectangular waveform with “H” duty cycle
n/(n+m) from the P4
4
/PWM
1
pin by setting the timer 56 mode regis-
ter (refer to Figure 19). The n is the value set in timer 6 latch (address
0025
16
) and m is the value in the timer 6 PWM register (address
0027
16
). If n is “0”, the PWM output is “L”, if m is “0”, the PWM output
is “H” (n = 0 is prior than m = 0). In the PWM mode, interrupts occur
at the rising edge of the PWM output.
Fig. 17 Structure of timer related register
T
(
i
T
m
1
i
0
1
T
0
1
T
0
0
1
1
T
0
0
1
1
T
0
1
N
(
e
2
r
M
1
:
2
a
d
m
d
o
r
d
e
e
s
r
e
0
g
0
i
2
s
t
e
r
6
)
s
8
1
T
m
:
:
m
:
:
m
0
1
0
1
i
m
0
1
0
1
i
m
:
:
o
D
e
C
C
e
C
C
e
:
:
:
:
e
:
:
:
:
e
I
/
T
t
o
r
o
o
r
o
o
r
f
(
f
(
f
(
f
(
r
U
f
(
E
N
r
O
i
m
u
s
n
u
u
2
u
u
1
X
I
X
C
X
I
X
I
2
n
X
C
x
t
o
1
p
e
e
o
t
1
c
t
t
c
t
t
c
N
)
I
N
)
N
)
c
d
I
e
t
o
o
r
d
w
o
o
s
o
o
s
o
/
N
)
/
/
o
e
r
N
)
r
n
a
v
u
r
1
(
r
u
p
t
u
p
t
u
8
n
e
o
n
e
o
n
o
t
r
s
a
t
t
o
i
o
p
n
b
i
t
i
i
n
n
n
n
p
t
r
s
a
t
t
o
i
o
p
n
b
i
t
p
t
r
s
f
o
(
X
C
u
r
c
I
e
1
s
e
6
l
e
c
t
i
o
n
b
i
t
s
N
)
/
1
6
u
f
6
4
n
l
o
o
o
t
w
r
r
s
f
f
(
(
u
f
X
C
X
C
r
T
I
I
e
m
N
)
N
)
/
/
s
e
3
1
e
r
2
2
l
1
8
e
o
o
c
i
c
t
i
o
n
b
i
t
s
a
a
t
p
l
i
l
u
c
a
o
b
t
u
l
e
s
e
n
t
i
n
p
u
t
C
N
T
R
0
l
e
c
t
i
o
n
b
i
t
(
P
4
5
)
t
o
e
t
e
u
t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
e
u
s
e
d
.
相關(guān)PDF資料
PDF描述
M38B47EDH-XXXXFP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38B48E3H-XXXXFP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38B48E7H-XXXXFP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38B48E8H-XXXXFP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38B48EFH-XXXXFP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M38B45EEH-XXXXFP 制造商:MITSUBISHI 制造商全稱(chēng):Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38B45EFH-XXXXFP 制造商:MITSUBISHI 制造商全稱(chēng):Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38B45M1H-XXXXFP 制造商:MITSUBISHI 制造商全稱(chēng):Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38B45M2H-XXXXFP 制造商:MITSUBISHI 制造商全稱(chēng):Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38B45M3H-XXXXFP 制造商:MITSUBISHI 制造商全稱(chēng):Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER