External Interrupts - Renesas H8/3847R Series Hardware Manual

8-bit single-chip microcomputer super low power
Table of Contents

Advertisement

Bit n: WKPn edge select (WKEGSn)
Bit n selects WKPn pin input sensing.
Bit n
WKEGSn
Description
WKPn pin falling edge detected
0
WKPn pin rising edge detected
1
3.3.3

External Interrupts

There are 13 external interrupts: IRQ
1. Interrupts WKP
7
Interrupts WKP
to WKP
7
WKP
. When these pins are designated as pins WKP
0
rising or falling edge is input, the corresponding bit in IWPR is set to 1, requesting an interrupt.
Recognition of wakeup interrupt requests can be disabled by clearing the IENWP bit to 0 in
IENR1. These interrupts can all be masked by setting the I bit to 1 in CCR.
When WKP
to WKP
7
number 9 is assigned to interrupts WKP
vector number, so the interrupt-handling routine must discriminate the interrupt source.
2. Interrupts IRQ
to IRQ
4
Interrupts IRQ4 to IRQ
detected by either rising edge sensing or falling edge sensing, depending on the settings of bits
IEG
to IEG
in IEGR.
4
0
When these pins are designated as pins IRQ
designated edge is input, the corresponding bit in IRR1 is set to 1, requesting an interrupt.
Recognition of these interrupt requests can be disabled individually by clearing bits IEN4 to IEN0
to 0 in IENR1. These interrupts can all be masked by setting the I bit to 1 in CCR.
When IRQ
to IRQ
interrupt exception handling is initiated, the I bit is set to 1 in CCR. Vector
4
0
numbers 8 to 4 are assigned to interrupts IRQ
to IRQ
(low). Table 3.2 gives details.
4
to IRQ
4
to WKP
0
are requested by either rising or falling edge input to pins WKP
0
interrupt exception handling is initiated, the I bit is set to 1 in CCR. Vector
0
to WKP
7
0
are requested by input signals to pins IRQ
0
and WKP
to WKP
0
7
to WKP
in port mode register 5 and a
7
0
. All eight interrupt sources have the same
0
to IRQ
in port mode register 3 and 1 and the
4
0
to IRQ
. The order of priority is from IRQ
4
0
Rev. 6.00 Aug 04, 2006 page 107 of 680
Section 3 Exception Handling
(initial value)
.
0
to IRQ
. These interrupts are
4
0
REJ09B0145-0600
(n = 7 to 0)
to
7
(high)
0

Advertisement

Table of Contents
loading

Table of Contents