
7540 Group User
’
s Manual
2-86
APPLICATION
2.5 Timer Y and timer Z
Fig. 2.5.29 Setting method for programmable one-shot generation mode (1)
(2) Event counter mode setting method
Figure 2.5.29 to Figure 2.5.31 show the setting method for programmable one-shot generation mode
of timer Z.
b
7
b
0
1
b7
1
b0
0
1 1
b7
b0
b
7
b
0
0
b
7
b
0
0
T
0
1
T
0
i
m
:
:
i
m
:
e
r
a
a
r
i
t
L
n
i
“
H
T
0
I
N
:
I
N
N
T
0
0
:
F
1
:
R
v
v
Z
i
a
”
i
t
i
a
”
p
T
0
T
0
p
a
l
l
i
s
i
Z
e
e
p
f
o
f
o
o
l
s
n
t
l
s
i
n
t
i
n
p
p
i
n
i
n
g
n
g
r
i
r
r
m
m
m
t
p
a
t
r
v
t
a
e
r
o
n
i
n
i
n
o
n
e
e
d
a
n
e
u
e
a
l
t
e
v
a
e
-
o
n
o
n
e
-
d
g
g
r
y
o
x
t
b
a
l
b
s
h
e
e
s
h
e
e
t
t
e
y
t
y
o
-
s
-
s
o
t
t
r
w
e
e
v
s
T
s
t
h
h
t
r
i
i
g
a
x
n
e
t
o
Z
t
o
T
t
o
o
t
g
g
g
v
t
d
l
p
e
e
e
l
:
S
p
Z
S
r
i
g
t
t
r
i
g
e
e
f
o
d
r
e
m
d
e
x
t
e
n
s
i
o
n
c
o
n
t
r
o
l
b
i
t
(
N
o
t
e
1
)
W
W
n
d
a
:
e
u
t
t
a
l
t
c
L
s
“
H
s
g
e
r
i
g
r
i
g
g
e
r
r
h
”
t
”
e
r
g
g
r
I
n
“
I
“
,
t
,
t
c
e
e
a
“
i
n
“
t
i
o
r
r
c
H
g
L
n
n
i
v
t
”
v
i
v
t
r
n
v
a
i
v
i
n
a
n
a
o
a
l
i
d
e
t
l
t
e
u
e
l
u
b
l
i
d
r
e
r
e
i
v
a
l
b
y
T
Z
P
s
e
t
t
i
n
g
v
a
l
u
e
,
e
e
1
:
”
v
a
l
b
y
T
Z
P
s
e
t
t
i
n
g
v
a
l
u
e
,
g
I
0
1
I
N
:
l
t
(
N
o
t
e
2
)
t
t
e
d
g
e
s
e
l
e
c
t
i
o
n
b
i
t
(
N
o
t
e
2
)
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
(
N
o
t
e
)
.
Port P0 direction register (P0D) [Address 01
16
]
e
t
P
0
2
/
T
Z
O
U
p
i
n
a
s
t
h
e
S
T
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
t
h
e
i
n
t
e
r
r
u
p
t
.
Process 2: Set timer Y, Z mode register.
T
r
W
T
i
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
o
c
t
n
h
o
e
(
N
p
-
s
h
o
o
t
t
g
e
n
e
r
a
t
i
o
n
m
o
d
e
i
n
o
e
)
i
In
t
e
r
r
u
p
t
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
1
(
I
C
O
N
1
)
[
A
d
d
r
e
s
s
3
E
1
6
]
INT
0
interrupt disabled
Process 3: Set timer Y, Z waveform output control register.
Timer Y, Z waveform output control register (PUM) [Address 24
16
]
N
o
t
e
s
1
:
T
o
W
A
e
S
h
n
e
l
h
s
x
t
o
w
w
e
n
o
,
e
n
p
a
v
e
e
h
h
i
o
m
f
o
v
n
f
r
r
0
a
t
u
Z
m
0
1
l
u
h
n
c
t
o
e
6
”
e
e
t
c
x
t
o
i
m
o
n
h
e
i
s
t
n
s
e
e
e
r
c
a
a
n
i
o
t
t
Y
n
e
n
t
h
u
n
t
f
n
n
o
t
h
e
u
p
n
r
“
d
b
s
c
e
0
r
e
e
t
s
0
1
f
l
o
u
b
i
o
c
n
a
6
”
w
s
e
i
t
s
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