EasyManuals Logo
Home>Renesas>Motherboard>RL78/G10

Renesas RL78/G10 User Manual

Renesas RL78/G10
637 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #535 background imageLoading...
Page #535 background image
RL78/G10 CHAPTER 15 KEY INTERRUPT FUNCTION
R01UH0384EJ0311 Rev. 3.11 518
Dec 22, 2016
15.3 Register Controlling Key Interrupt
The key interrupt function is controlled by the following five registers:
• Key return control register (KRCTL)
• Key return mode register (KRM0)
• Key return flag register (KRF)
• Port mode control register 0 (PMC0)
• Port mode registers 0, 4 (PM0, PM4)
15.3.1 Key interrupt control register (KRCTL)
This register controls the usage of the key interrupt flags (KRF0 to KRF5) and sets the detection edge.
The KRCTL register can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 15-2. Format of Key Return Control Register (KRCTL)
A
ddress: FFF34H After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 0
KRCTL KRMD 0 0 0 0 0 0 KREG
KRMD Usage of Key Interrupt Flags (KRF0 to KRF5)
0 Does not use key interrupt flags
1 Uses key interrupt flags
KREG Selection of Detection Edge (KR0 to KR5)
0 Falling edge
1 Rising edge
KRMD KREG Interrupt function
0 0
Key interrupt, external interrupt (specified by the port level)
Note
0 1
External interrupt (specified by the port level)
1 0
External interrupt (specified by the flag)
1 1
Note When the falling edge is detected, the function and operation of the external interrupt are the
same as those of the key interrupt.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G10 and is the answer not in the manual?

Renesas RL78/G10 Specifications

General IconGeneral
BrandRenesas
ModelRL78/G10
CategoryMotherboard
LanguageEnglish

Related product manuals