
7540 Group User
’
s Manual
APPLICATION
2-95
2.5 Timer Y and timer Z
Fig. 2.5.37 Setting method for programmable wait one-shot generation mode (2)
b7
b
0
b7
b
0
b7
b
0
0
b7
0
b
0
Prescaler Z (PREZ) [Address 25
16
] (
Note 2
)
Process 7: Set the wait interval, one-shot pulse width (
Note 1
).
Set the wait interval to the timer Z primary, and one-shot pulse width to the timer Z secondary.
Count value
i
m
e
r
C
o
i
u
n
t
v
a
l
u
e
T
Z
s
e
c
o
n
d
a
r
y
(
T
Z
S
)
[
A
d
d
r
e
s
s
2
6
1
6
]
Notes
1:
In the programmable wait one-shot generation mode, values of TZS,
EXPZP, and EXPZS are valid by writing to TZP. Even when changing
TZP is not required, write the same value again.
2:
When the timer Z waveform extension function is used, be sure to set
“
00
16
”
to prescaler Z.
3:
In the programmable wait one-shot generation mode, when the setting
value is changed while the waveform is output, set by software in
order not to execute the writing to TZP and the timing of timer Z
underflow during the secondary interval simultanesously.
4:
Count values of the primary interval (during wait) and secondary
interval (during one-shot output) can be checked by reading TZP (TZS
is undefined at read).
P
r
o
c
e
s
s
6
:
S
e
t
t
h
e
t
i
m
e
r
Z
c
o
u
n
t
s
o
u
r
c
e
.
T
i
b
0
0
1
1
i
m
5
m
e
r
c
o
u
n
t
s
o
u
r
c
e
s
e
t
r
e
g
i
s
t
e
r
(
T
C
S
S
)
[
A
d
d
r
e
s
s
2
E
1
6
]
T
e
r
Z
c
o
u
n
t
s
o
u
r
c
e
s
e
l
e
c
t
i
o
n
b
i
t
s
b
0
1
0
1
4
:
:
:
:
f
f
T
N
(
(
X
I
X
I
i
m
o
N
)
N
)
e
t
/
/
r
v
1
2
Y
a
6
i
u
l
a
n
b
d
l
e
e
r
f
l
o
w
(
N
o
t
e
)
a
P
r
o
c
e
s
s
5
:
W
S
h
e
e
t
n
p
t
r
h
t
e
P
t
3
r
i
g
d
g
i
r
e
e
r
c
b
t
i
y
o
n
I
N
r
T
0
e
g
p
s
i
e
n
,
i
n
p
p
u
u
l
t
-
u
i
s
p
s
e
c
l
e
n
c
t
t
o
e
d
l
:
e
o
i
t
r
l
o
r
r
g
i
s
t
e
r
a
n
d
p
o
r
t
P
1
P
3
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
Pull-up control register (PULL) [Address 16
16
]
P
0
1
3
7
/
:
:
I
u
u
N
l
l
T
0
-
u
l
-
u
p
u
O
O
l
f
n
l
f
-
u
p
c
o
n
t
r
o
l
b
i
t
P
P
l
p
p
Port P1P3 control register (P1P3C) [Address 17
16
]
P
0
1
3
7
/
:
:
I
M
T
N
T
0
O
S
L
l
i
n
l
e
e
p
v
l
u
e
t
l
e
v
e
l
s
e
l
e
c
t
i
o
n
b
i
t
C
T
l
e
v
P
o
r
t
P
3
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
(
P
3
D
)
[
A
d
d
r
e
s
s
0
7
1
6
]
S
e
t
P
3
7
/
I
N
T
0
p
i
n
t
o
t
h
e
i
n
p
u
t
m
o
d
e
Note:
When the timer Z waveform extension function is used,
do not select the timer Y underflow for the timer Z count source.
C
o
u
n
t
v
a
l
u
e
T
m
e
r
Z
p
r
i
m
a
r
y
(
T
Z
P
)
[
A
d
d
r
e
s
s
2
7
1
6
]