Renesas R8C/Tiny Series Manual Página 58

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 199
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 57
R8C/10 Group
Rev.1.20 Jan 27, 2006 page 48 of 180
REJ09B0019-0120
______ ______
10.2.3 INT1 Interrupt and INT2 Interrupt
______ ______
INT1 interrupts are triggered by INT1 inputs. The edge polarity is selected with the R0EDG bit in the
______
TXMR register. The INT1 pin is shared with the CNTR0 pin.
______ ______
INT2 interrupts are triggered by INT2 inputs. The edge polarity is selected with the R1EDG bit in the
______
TYZMR register. The INT2 pin is shared with the CNTR1 pin.
______ _____
Figure 10.13 shows the TXMR and TYZMR registers when using INT1 and INT2 interrupts.
______ ______
Figure 10.13 TXMR Register and TYZMR Register when INT1 and INT2 Interrupt Used
T
i
m
e
r
X
m
o
d
e
r
e
g
i
s
t
e
r
S
y
m
b
o
lA
d
d
r
e
s
sA
f
t
e
r
r
e
s
e
t
T
X
M
R0
0
8
B
1
6
0
0
1
6
Bit name
FunctionB
i
t
s
y
m
b
o
l
R
W
b
7
b
6
b
5
b
4
b
3
b
2
b
1
b
0
0 0 : Timer mode or pulse period
measurement mode
(3)
b
1
b
0
T
X
M
O
D
2
TXS
T
X
M
O
D
1
R
0
E
D
G
T
X
M
O
D
0
T
X
O
C
N
T
Operation mode
select bit 0, 1
Timer X count
start flag
0
:
S
t
o
p
s
c
o
u
n
t
i
n
g
1
:
S
t
a
r
t
s
c
o
u
n
t
i
n
g
O
p
e
r
a
t
i
o
n
m
o
d
e
s
e
l
e
c
t
b
i
t
2
00
0
S
e
t
t
o
"
0
"
i
n
t
i
m
e
r
m
o
d
e
0
:
R
i
s
i
n
g
e
d
g
e
1
:
F
a
l
l
i
n
g
e
d
g
e
0
TXEDG
TXUND
R
W
R
W
R
W
R
W
RW
R
W
RW
RW
INT1/CNTR
0
polarity
switching bit
(1, 2)
Set to "0" in timer mode
S
e
t
t
o
"
0
"
i
n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
G
0 : Rising edge
1 : Falling edge
I
N
T
2
/
C
N
T
R
1
p
o
l
a
r
i
t
y
s
w
i
t
c
h
i
n
g
b
i
t
(2
)
R
W
R
W
R
W
N
O
T
E
S
:
1
.
W
h
e
n
u
s
i
n
g
I
N
T
2
i
n
t
e
r
r
u
p
t
s
,
m
u
s
t
s
e
t
t
o
t
i
m
e
r
m
o
d
e
.
2
.
T
h
e
I
R
b
i
t
i
n
t
h
e
I
N
T
2
I
C
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
.
F
u
n
c
t
i
o
n
v
a
r
i
e
s
d
e
p
e
n
d
i
n
g
o
n
t
h
e
o
p
e
r
a
t
i
o
n
m
o
d
e
10.2 INT Interrupt
Vista de página 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 198 199

Comentários a estes Manuais

Sem comentários