
R8C/10 Group
Rev.1.20 Jan 27, 2006 page 46 of 180
REJ09B0019-0120
______
10.2 INT Interrupt
________
10.2.1 INT0 Interrupt
_______
INT0 interrupt is triggered by an INT0 input. When using INT0 interrupts, the INT0EN bit in the INTEN
register must be set to “1” (enabling). The edge polarity is selected using the INT0PL bit in the INTEN
register and the POL bit in the INT0IC register.
Inputs can be passed through a digital filter with three different sampling clocks.
_______
The INT0 pin is shared with the external trigger input pin of Timer Z.
Figure 10.10 shows the INTEN and INT0F registers.
Figure 10.10 INTEN Register and INT0F Register
E
x
t
e
r
n
a
l
i
n
p
u
t
e
n
a
b
l
e
r
e
g
i
s
t
e
r
Bit name F
u
n
c
t
i
o
n
Bit symbol
R
W
S
y
m
b
o
lA
d
d
r
e
s
sA
f
t
e
r
r
e
s
e
t
I
N
T
E
N
0
0
9
6
1
6
0
01
6
I
N
T
0
E
N
b
7b
6b
5b4b
3b
2b
1b
0
I
N
T
0
i
n
p
u
t
e
n
a
b
l
e
b
i
t
(1
)
0
:
D
i
s
a
b
l
e
d
1
:
E
n
a
b
l
e
d
0
:
O
n
e
e
d
g
e
1
:
B
o
t
h
e
d
g
e
s
Set to “0”
I
N
T
0
i
n
p
u
t
p
o
l
a
r
i
t
y
s
e
l
e
c
t
b
i
t
(2
)
Reserved bit
I
N
T
0
P
L
(
b
7
-
b
2
)
NOTES:
1. This bit must be set while the INT0STG bit in the PUM register is set to “0” (one-shot trigger disabled).
2. When setting the INT0PL bit to “1” (selecting both edges), the POL bit in the INT0IC must be set to “0”
(selecting falling edge).
3. The IR bit in the INT0IC register may be set to “1” (interrupt requested) when the INT0PL bit is rewritten.
Refer to the paragraph 19.2.5 “Changing Interrupt Factor” in the Usage Notes Reference Book.
I
N
T
0
i
n
p
u
t
f
i
l
t
e
r
s
e
l
e
c
t
r
e
g
i
s
t
e
r
Bit name F
u
n
c
t
i
o
n
B
i
t
s
y
m
b
o
l
S
y
m
b
o
lA
d
d
r
e
s
sA
f
t
e
r
r
e
s
e
t
I
N
T
0
F
0
0
1
E
1
6
X
X
X
X
X
0
0
02
INT0F0
b7 b6 b5 b4 b3 b2 b1 b0
0
0
:
N
o
f
i
l
t
e
r
0
1
:
F
i
l
t
e
r
w
i
t
h
f
1
s
a
m
p
l
i
n
g
1
0
:
F
i
l
t
e
r
w
i
t
h
f
8
s
a
m
p
l
i
n
g
1
1
:
F
i
l
t
e
r
w
i
t
h
f
3
2
s
a
m
p
l
i
n
g
Set to “0”Reserved bit
I
N
T
0
F
1
b
1
b
0
INT0 input filter select bit
Nothing is assigned.
When write, set to “0”. If read, it content is
indeterminate.
R
W
R
W
RW
RW
RW
R
W
RW
(b2)
(
b
7
-
b
3
)
0
0000
00
10.2 INT Interrupt
Commentaires sur ces manuels