Chapter 16 Key Interrupt Function; Functions Of Key Interrupt; Configuration Of Key Interrupt - NEC 78K0R/KE3 User Manual

16-bit single-chip microcontrollers
Table of Contents

Advertisement

16.1 Functions of Key Interrupt

A key interrupt (INTKR) can be generated by setting the key return mode register (KRM) and inputting a falling
edge to the key interrupt input pins (KR0 to KR7).

16.2 Configuration of Key Interrupt

The key interrupt includes the following hardware.
<R>
KR7/P77/INTP11
KR6/P76/INTP10
KR5/P75/INTP9
KR4/P74/INTP8
KR3/P73
KR2/P72
KR1/P71
KR0/P70
KRM7 KRM6 KRM5 KRM4 KRM3 KRM2 KRM1 KRM0
598

CHAPTER 16 KEY INTERRUPT FUNCTION

Table 16-1. Assignment of Key Interrupt Detection Pins
Flag
KRM0
Controls KR0 signal in 1-bit units.
KRM1
Controls KR1 signal in 1-bit units.
KRM2
Controls KR2 signal in 1-bit units.
KRM3
Controls KR3 signal in 1-bit units.
KRM4
Controls KR4 signal in 1-bit units.
KRM5
Controls KR5 signal in 1-bit units.
KRM6
Controls KR6 signal in 1-bit units.
KRM7
Controls KR7 signal in 1-bit units.
Table 16-2. Configuration of Key Interrupt
Item
Control register
Key return mode register (KRM)
Port mode register 7 (PM7)
Figure 16-1. Block Diagram of Key Interrupt
Key return mode register (KRM)
User's Manual U17854EJ9V0UD
Description
Configuration
INTKR

Advertisement

Table of Contents
loading

Table of Contents