|
7643 Datasheet, PDF (23/121 Pages) Renesas Technology Corp – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER | |||
|
◁ |
7643 Group
Key Input Interrupt (Key-on Wake-Up)
A key input interrupt request is generated by applying âLâ level to any
pin of port P2 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 inter-
rupt request is generated by pressing one of the keys consisted as
an active-low key matrix which inputs to ports P20âP24.
Port PXx
âLâ level output
P27 output
P26 output
P25 output
P24 input
P23 input
P22 input
P21 input
P20 input
Port P2 pull-up control register
Bit 7 = â0â
Port P27
â»
â»â»
direction register = â1â
Port P27
latch
Falling edge
detector
Port P2 pull-up control register
Bit 6 = â0â
Port P26
â»
â»â»
direction register = â1â
Port P26
latch
Falling edge
detector
Port P2 pull-up control register
Bit 5 = â0â
Port P25
â»
â»â»
direction register = â1â
Port P25
latch
Falling edge
detector
Port P2 pull-up control register
Bit 4 = â0â
Port P24
â»
â»â»
direction register = â0â
Port P24
latch
Falling edge
detector
Port P2 pull-up control register
Bit 3 = â0â
Port P23
â»
â»â»
direction register = â0â
Port P23
latch
Falling edge
detector
Port P2 pull-up control register
Bit 2 = â0â
Port P22
â»
â»â»
direction register = â0â
Port P22
latch
Falling edge
detector
Port P2 pull-up control register
Bit 1 = â0â
Port P21
â»
â»â»
direction register = â0â
Port P21
latch
Falling edge
detector
Port P2 pull-up control register
Bit 0 = â0â
Port P20
â»
â»â»
direction register = â0â
Port P20
latch
Falling edge
detector
Key input interrupt request
Port P2
Input reading circuit
â» P-channel transistor for pull-up
â»â» CMOS output buffer
Fig. 18 Connection example when using key input interrupt and port P2 block diagram
Rev.2.00 Aug 28, 2006 page 23 of 119
REJ03B0054-0200
|
▷ |