Rev.2.00
REJ03B0202-0200
Mar 05, 2007
Page 23 of 70
7549 Group
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Key Input Interrupt (Key-On Wakeup)
A key-on wakeup interrupt request is generated by applying “L”
level to any pin of port P1 that has been set to input mode.
In other words, it is generated when the 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 provided as an active-low key matrix
which uses ports P1
0
to P1
3
as input ports.
Fig 21. Connection example when using key input interrupt and port P1 block diagram
Port PXx
level output
“L”
Port P1 pull-up control register
bit 7 =
“0”
Port P1
7
latch
Port P1
7
Direction register =
**
*
P1
7
output
Key input interrupt request
* P-channel transistor for pull-up
** CMOS output buffer
Port P1 pull-up control register
bit 6 =
**
Port P1
6
latch
Port P1
6
Direction register =
*
P1
6
output
bit 5 =
Port P1
5
latch
Port P1
5
Direction register =
**
*
P1
5
output
bit 4 =
Port P1
4
latch
Port P1
4
Direction register =
**
*
P1
4
output
bit 3 =
Port P1
3
latch
Port P1
3
Direction register =
**
*
P1
3
input
bit 2 =
Port P1
2
latch
Port P1
2
Direction register =
**
*
P1
2
input
bit 1 =
Port P1
1
latch
Port P1
1
Direction register =
**
*
P1
1
input
bit 0 =
Port P1
0
latch
Port P1
0
Direction register =
**
*
P1
0
input
Falling edge
detection
Falling edge
detection
Falling edge
detection
Falling edge
detection
Falling edge
detection
Falling edge
detection
Falling edge
detection
Falling edge
detection
Port P1
0
key-on wakeup
selection bit
Port P1
6
key-on wakeup
selection bit
“0”
“0”
“0”
“1”
“1”
“1”
“1”
“1”
“1”
“1”
“1”
“0”
“0”
“0”
“0”
Port P1
Input read circuit
Port P1
7
key-on wakeup
selection bit
Port P1 pull-up control register
Port P1 pull-up control register
Port P1 pull-up control register
Port P1 pull-up control register
Port P1 pull-up control register
Port P1
4
key-on wakeup
selection bit
Port P1
3
key-on wakeup
selection bit
Port P1
2
key-on wakeup
selection bit
Port P1 pull-up control register
Port P1
1
key-on wakeup
selection bit
Port P1
5
key-on wakeup
selection bit