Technical information
23
3886 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
Key Input Interrupt (Key-on Wake Up)
A Key input interrupt request is generated by applying “L” level to
any pin of port P3 that have been set to input mode. In other
words, it is generated when AND of input level goes from “1” to
“0”. An example of using a key input interrupt is shown in Figure
18, where an interrupt request is generated by pressing one of the
keys consisted as an active-low key matrix which inputs to ports
P30–P33.
Fig. 18 Connection example when using key input interrupt and port P3 block diagram
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
✻
P
o
r
t
P
3
0
l
a
t
c
h
P
o
r
t
P
30
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
=
“
0
”
P
o
r
t
P
3
1
l
a
t
c
h
P
o
r
t
P
3
1
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
=
“
0
”
P
o
r
t
P
3
2
l
a
t
c
h
P
o
r
t
P
3
2
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
=
“
0
”
P
o
r
t
P
3
3
l
a
t
c
h
P
o
r
t
P
3
3
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
=
“
0
”
P
o
r
t
P
3
4
l
a
t
c
h
P
o
r
t
P
3
4
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
=
“
1
”
P
o
r
t
P
3
5
l
a
t
c
h
P
o
r
t
P
3
5
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
=
“
1
”
P
o
r
t
P
3
6
l
a
t
c
h
P
o
r
t
P
3
6
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
=
“
1
”
P
o
r
t
P
3
7
l
a
t
c
h
P
o
r
t
P
3
7
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
=
“
1
”
P
3
0
i
n
p
u
t
P
3
1
i
n
p
u
t
P
3
2
i
n
p
u
t
P
3
3
i
n
p
u
t
P
3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