27
7641 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
PRELIMINARY
Notice: This is not a final specification.
change.
Some parametric limits are subject to
Timer 1, Timer 2, Timer 3
Timer 1, timer 2, and timer 3 are 8-bit timers. The count source for
each timer can be selected by timer 123 mode register.
G
Timers 1, 2 Write Control
When the Timers 1, 2 Write Control Bit is
“
1
”
and the values are
written in the address of timers 1 and 2, the values are loaded only
in their latches. The values in the latches are loaded in timers 1
and 2 after timers 1 and 2 underflow.
When the Timers 1, 2 Write Control Bit is
“
0
”
and the values are
written in the address of timers 1 and 2, the values are loaded in
the timers 1 and 2 and their latches at the same time.
G
Timers 1, 2 Output Control
A signal of which polarity is inverted each time the timer selected
by the T
OUT
Factor Select Bit underflows is output from the T
OUT
pin. This is enabled by setting the T
OUT
Output Control Bit to
“
1
”
.
When the T
OUT
Output Active Edge Switch Bit is
“
0
”
, the T
OUT
pin
starts pulses output beginning at
“
H
”
; when this bit is
“
1
”
, the T
OUT
pin starts pulses output beginning at
“
L
”
.
When using a timer in this mode, set the port P5
1
direction regis-
ter to output mode.
I
Notes
G
Timer 1 to Timer 3
Switching of the count sources of timers 1 to 3 does not affect the
values of reload latches. However, that may make count operation
started. Therefore, write values again in the order of timers 1, 2
and then timer 3 after their count sources have been switched.
G
Timers 1, 2 Write Control
When the value is to be written in latch only, unexpected value
may be set in the timer if the writing in the latch and the timer un-
derflow are performed at the same timing.
Fig. 22 Structure of timer 123 mode register
T
T
i
1
m
2
e
3
r
M
1
2
3
m
o
d
e
r
e
g
i
s
t
e
r
(
a
d
d
r
e
s
s
0
0
2
9
1
6
)
T
O
U
:
:
T
T
T
e
:
C
1
:
i
m
0
:
1
:
T
i
m
0
1
T
i
m
0
1
T
O
U
0
1
T
O
U
0
:
1
:
Ti
m
0
:
1
:
f
i
i
r
a
m
m
1
o
o
r
φ
f
(
e
r
:
T
:
φ
e
r
:
T
:
φ
T
o
:
S
:
S
T
o
T
O
T
O
e
r
W
W
c
t
o
r
r
c
n
n
c
8
X
C
2
i
m
r
o
t
t
o
s
n
s
t
s
t
u
n
e
o
o
l
e
t
t
s
r
t
p
t
c
p
p
t
t
u
u
o
b
t
t
p
i
t
0
1
i
m
0
e
e
1
2
u
u
u
t
a
o
T
b
i
t
u
u
1
/
C
e
T
s
o
u
r
c
e
s
e
l
e
c
t
b
i
t
I
N
)
c
o
e
u
1
/
n
2
t
o
s
u
o
t
p
u
u
r
c
t
e
s
e
l
e
c
t
b
i
t
r
i
3
m
/
u
t
a
t
a
u
c
e
8
t
p
r
r
t
p
T
T
1
t
e
t
e
o
r
u
1
n
t
o
s
u
o
t
p
u
u
r
c
t
e
s
e
l
e
c
t
b
i
t
u
a
t
a
u
o
o
,
2
v
v
t
t
t
a
“
“
c
t
p
t
p
w
a
l
a
l
c
H
L
o
u
u
r
u
u
t
i
”
v
o
n
t
t
t
i
t
e
e
e
e
o
e
t
t
p
l
s
a
n
a
c
o
n
l
n
l
d
p
g
u
u
b
i
b
b
n
t
a
t
a
t
e
t
t
t
l
e
l
e
r
o
c
h
c
h
s
w
i
t
c
h
b
i
t
t
u
u
o
i
”
t
r
d
e
i
i
U
u
u
d
d
l
a
o
U
r
i
r
i
s
b
n
n
i
t
d
l
y
c
o
u
n
t
e
r
b
0
b
7