Renesas R8C/Tiny Series Manuel Page 83

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 199
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 82
R8C/10 Group
Rev.1.20 Jan 27, 2006 page 73 of 180
REJ09B0019-0120
TZSC register
f
1
f
8
T
i
m
e
r
Y
u
n
d
e
r
f
l
o
w
f
2
T
o
g
g
l
e
f
l
i
p
-
f
l
o
p
P3_1 bit in P3 register
T
Z
O
U
T
Q
Q
Data bus
Reload registe
r
R
e
l
o
a
d
r
e
g
i
s
t
e
r
R
e
l
o
a
d
r
e
g
i
s
t
e
r
T
Z
P
R
r
e
g
i
s
t
e
r
Counter
C
o
u
n
t
e
r
P
R
E
Z
r
e
g
i
s
t
e
r
Input polarity selected to be
one edge or both edges
Digital
filter
P
o
l
a
r
i
t
y
s
e
l
e
c
t
INT0
T
Z
S
TZOS
INOSEG
TZOCNT=0
INT0P
L
T
Z
M
O
D
1
t
o
T
Z
M
O
D
0
=
0
1
2
,
1
0
2
,
1
1
2
INT0EN
T
Z
O
C
N
T
=
1
TZOPL=0
TZOPL=1
T
Z
M
O
D
1
t
o
T
Z
M
O
D
0
=
1
0
2
,
1
1
2
T
Z
C
K
1
t
o
T
Z
C
K
0
=
0
0
2
=01
2
=
1
0
2
=
1
1
2
T
i
m
e
r
Z
i
n
t
e
r
r
u
p
t
I
N
T
0
i
n
t
e
r
r
u
p
t
C
K
C
L
R
Write to TYZMR register
TZMOD1 to TZMOD0 bits=01
2
, 10
2
, 11
2
Figure 12.19 TYZMR Register
12.3 Timer Z
Timer Z is an 8-bit timer with an 8-bit prescaler and has two reload registers-Timer Z Primary and Timer
Z Secondary. Figure 12.18 shows a block diagram of Timer Z. Figures 12.19 to 12.21 show the TYZMR,
PREZ, TZSC, TZPR, TYZOC, PUM, and TCSS registers.
Timer Z has the following four operation modes.
• Timer mode: The timer counts an internal count source or Timer Y underflow.
• Programmable waveform generation mode: The timer outputs pulses of a given width successively.
• Programmable one-shot generation mode: The timer outputs one-shot pulse.
• Programmable wait one-shot generation mode: The timer outputs delayed one-shot pulse.
Timer Y, Z mode register
S
y
m
b
o
lA
d
d
r
e
s
sA
f
t
e
r
r
e
s
e
t
T
Y
Z
M
R0
0
8
0
1
6
0
0
1
6
Bit name
FunctionBit symbol
b
7
b
6
b
5
b
4
b
3
b
2
b
1
b
0
0 0 : Timer mode
0 1 : Programmable waveform generation mode
1 0 : Programmable one-shot generation mode
1 1 : Programmable wait one-shot generation
mode
T
Z
M
O
D
1
T
Y
S
T
Y
W
C
T
Y
M
O
D
0
T
Z
M
O
D
0
T
i
m
e
r
Y
o
p
e
r
a
t
i
o
n
m
o
d
e
b
i
t
T
i
m
e
r
Y
w
r
i
t
e
c
o
n
t
r
o
l
b
i
t
Function varies depending on the operation
mode
0 : Timer mode
1 : Programmable waveform generation mode
T
Z
W
C
T
Z
S
0 : Stops counting
1 : Starts counting
0 : Stops counting
1 : Starts counting
T
i
m
e
r
Z
c
o
u
n
t
s
t
a
r
t
f
l
a
g
T
i
m
e
r
Z
o
p
e
r
a
t
i
o
n
m
o
d
e
b
i
t
b
5
b
4
T
i
m
e
r
Y
c
o
u
n
t
s
t
a
r
t
f
l
a
g
T
i
m
e
r
Z
w
r
i
t
e
c
o
n
t
r
o
l
b
i
t
Function varies depending on the operation
mode
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
1
E
D
G
0 : Rising edge
1 : Falling edge
INT2/CNTR
1
polarity
switching bit
(1)
N
O
T
E
S
:
1
.
T
h
e
I
R
b
i
t
i
n
t
h
e
I
N
T
2
I
C
r
e
g
i
s
t
e
r
m
a
y
b
e
s
e
t
t
o
1
(
i
n
t
e
r
r
u
p
t
r
e
q
u
e
s
t
e
d
)
w
h
e
n
t
h
e
R
1
E
D
G
b
i
t
i
s
r
e
w
r
i
t
t
e
n
.
R
e
f
e
r
t
o
t
h
e
p
a
r
a
g
r
a
p
h
1
9
.
2
.
5
C
h
a
n
g
i
n
g
I
n
t
e
r
r
u
p
t
F
a
c
t
o
r
i
n
t
h
e
U
s
a
g
e
N
o
t
e
s
R
e
f
e
r
e
n
c
e
B
o
o
k
.
Figure 12.18 Timer Z Block Diagram
12.3 Timer (Timer Z)
Vue de la page 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 198 199

Commentaires sur ces manuels

Pas de commentaire