Key Input Interrupt - Renesas M16C FAMILY Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY:
Table of Contents

Advertisement

Under development
Preliminary specification
Specifications in this manual are tentative and subject to change.
R8C/11 Group

10.3 Key Input Interrupt

A key input interrupt is generated on an input edge of any of the K1
be used as a key-on wakeup function to exit wait or stop mode. KIi input can be enabled or disabled
selecting with the KIiEN (i=0 to 3) bit in the KIEN register. The edge polarity can be rising edge or falling
edge selecting with the KIiPL bit in the KIEN register. Note, however, that while input on any KIi pin which
has had the KIiPL bit set to "0" (falling edge) is pulled low, inputs on all other pins of the port are not
detected as interrupts. Similarly, while input on any KIi pin which has had the KIiPL bit set to "1" (rising
edge) is pulled high, inputs on all other pins of the port are not detected as interrupts.
Figure 10.15 shows a block diagram of the key input interrupt.
Pull-up
transistor
KI
3
Pull-up
transistor
KI
2
Pull-up
transistor
KI
1
Pull-up
transistor
KI
0
Figure 10.15 Key Input Interrupt
Key input enable register
b7
b6
b5
b4
Notes:
1. The IR bit in the KUPIC register may be set to "1" (interrupt requested) when the KIEN register is rewritten.
Refer to the paragraph 19.2.5 "Changing Interrupt Source" in the Usage Notes Reference Book.
Figure 10.16 KIEN Register
Rev.0.91
2003 Sep 08
PU02 bit in PUR0 register
PD1_3 bit in PD1 register
KI3PL=0
KI3 input
KI3PL=1
polarity select
bit
KI2PL=0
KI2 input
KI2PL=1
polarity select
bit
KI1PL=0
KI1PL=1
KI1 input
polarity select
bit
KI0PL=0
KI0 input
KI0PL=1
polarity select
bit
b3
b2
b1
b0
Symbol
KIEN
Bit symbol
KI0EN
KI0 input enable bit
KI0PL
KI0 input polarity select bit
KI1EN
KI1 input enable bit
KI1PL
KI1 input polarity select bit
KI2EN
KI2 input enable bit
KI2PL
KI2 input polarity select bit
KI3EN
KI3 input enable bit
KI3PL
KI3 input polarity select bit
page 65 of 184
_____
_____
KI3EN bit
PD1_3 bit
KI2EN bit
PD1_2 bit
KI1EN bit
PD1_1 bit
KI0EN, KI1EN, KI2EN, KI3EN,
KI0PL, KI1PL, KI2PL, KI3PL: Bits in KIEN register
PD1_0, PD1_1, PD1_2, PD1_3: Bits in PD1 register
KI0EN bit
PD1_0 bit
Address
After reset
0098
00
16
16
Bit name
0 : Disabled
1 : Enabled
0 : Falling edge
1 : Rising edges
0 : Disabled
1 : Enabled
0 : Falling edge
1 : Rising edges
0 : Disabled
1 : Enabled
0 : Falling edge
1 : Rising edges
0 : Disabled
1 : Enabled
0 : Falling edge
1 : Rising edges
10.3 Key Input Interrupt
_____
to K1
pins. Key input interrupts can
0
3
_____
KUPIC register
Key input interrupt
Interrupt control circuit
request
RW
Function
RW
RW
RW
RW
RW
RW
RW
RW
_____

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c seriesTiny series

Table of Contents