7540 Group User
’
s Manual
2-94
APPLICATION
2.5 Timer Y and timer Z
Fig. 2.5.36 Setting method for programmable wait one-shot generation mode (1)
b7
b0
1
b
7
1
b
0
1
1 1
b7
b0
b
7
b
0
0
b
7
b
0
0
Timer Z primary waveform extension control bit (
Note 1
)
0: Waveform not extended
1: Waveform extended
Timer Z secondary waveform extension control bit (
Note 1
)
0: Waveform not extended
1: Waveform extended
Timer Z output level latch
0:
“
L
”
level is output at timer stop. When count is started,
“
L
”
level is output during the TZP interval (wait), and them,
“
H
”
level is output during the TZS interval (one-shot) and timer
Z output is stopped at
“
L
”
level by underflow.
1:
“
H
”
level is output at timer stop. When count is started,
“
H
”
level is output during the TZP interval (wait), and them,
“
L
”
level is output during the TZS interval (one-shot) and timer
Z output is stopped at
“
H
”
level by underflow.
INT
0
pin one-shot trigger control bit (
Note 2
)
0: INT
0
pin one-shot trigger invalid
1: INT
0
pin one-shot trigger valid
INT
0
pin one-shot trigger active edge selection bit (
Note 2
)
0: Falling edge trigger
1: Rising edge trigger
P
r
o
c
e
s
s
4
:
S
e
t
T
Z
O
U
T
p
i
n
t
o
t
h
e
o
u
t
p
u
t
.
Port P0 direction register (P0D) [Address 01
16
]
S
e
t
P
0
2
/
T
Z
O
U
T
p
i
n
a
s
t
h
e
o
u
t
p
u
t
m
o
d
e
Note:
When using this mode, be sure to select
“
write to latch only
”
.
P
r
o
c
e
s
s
1
:
D
i
s
a
b
l
e
i
n
t
e
r
r
u
p
t
.
P
r
o
c
e
s
s
2
:
S
e
t
t
i
m
e
r
Y
,
Z
m
o
d
e
r
e
g
i
s
t
e
r
.
T
i
r
W
T
m
e
r
Y
,
Z
m
o
d
e
r
e
g
i
s
t
e
r
(
T
Y
Z
M
)
[
A
d
d
r
e
s
s
2
0
1
6
]
P
o
r
m
g
t
e
e
r
a
t
r
m
o
Y
m
o
c
a
l
u
b
y
n
l
l
e
a
t
t
s
w
c
t
a
h
o
i
(
N
p
t
o
n
o
e
t
e
)
-
s
h
o
t
g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) Programmable wait one-shot generation mode setting method
Figure 2.5.36 to Figure 2.5.38 show the setting method for programmable wait one-shot generation
mode of Timer Z.