Renesas rl78 ユーザーズマニュアル
RL78/G1A
CHAPTER 17 KEY INTERRUPT FUNCTION
CHAPTER 17 KEY INTERRUPT FUNCTION
The number of key interrupt input channels differs, depending on the product.
25-pin
32-pin
48-pin
64-pin
Key interrupt input channels
0 (4) ch
1 (6) ch
6 ch
10 ch
Remarks 1. Functions in parentheses in the above figure can be assigned via settings in the peripheral I/O
redirection register (PIOR).
2. Most of the following descriptions in this chapter use the 64-pin products
17.1 Functions of Key Interrupt
A key interrupt (INTKR) can be generated by inputting a rising/falling edge to the key interrupt input pins (KR0 to KR9).
There are two ways to identify the channel(s) to which a valid edge has been input:
• Identify the channel(s) (KR0 to KR9) by using the port input level.
• Identify the channel(s) (KR0 to KR5) by using the key interrupt flag.
• Identify the channel(s) (KR0 to KR9) by using the port input level.
• Identify the channel(s) (KR0 to KR5) by using the key interrupt flag.
Table 17-1. Assignment of Key Interrupt Detection Pins
Key Interrupt Pins
Key Return Mode Registers (KRM0, KRM1)
Key Return Flag Register (KRF)
KR0 KRM00
KRF0
KR1 KRM01
KRF1
KR2 KRM02
KRF2
KR3 KRM03
KRF3
KR4 KRM04
KRF4
KR5 KRM05
KRF5
KR6 KRM06
−
KR7 KRM07
−
KR8 KRM08
−
KR9 KRM09
−
Remark (KR0 to KR3):
25-pin products
KR0 (KR0 to KR5):
32-pin products
KR0 to KR5:
48-pin products
KR0 to KR9:
64-pin products
Functions in parentheses in the above figure can be assigned via settings in the peripheral I/O redirection
register (PIOR)
R01UH0305EJ0200 Rev.2.00
714
Jul 04, 2013