Hitachi H8/3637 Hardware Manual page 79

H8/3637 series
Table of Contents

Advertisement

Bits 7 to 0—Wakeup Interrupt Request Flags (IWPF7 to IWPF0)
Bits 7 to 0:
IWPF7 to IWPF0
0
1
3.3.3
External Interrupts
There are 13 external interrupts, WKP
Interrupts WKP
to WKP
0
pins WKP
to WKP
0
7
5 (PMR5) and falling edge input is detected, the corresponding bit in the wakeup interrupt request
register (IWPR) is set to 1, requesting an interrupt. Wakeup interrupt requests can be disabled by
clearing the IENWP bit in IENR1 to 0. It is also possible to mask all interrupts by setting the CCR
I bit to 1.
When an interrupt exception handling request is received for interrupts WKP
bit is set to 1. The vector number for interrupts WKP
assigned the same vector number, the interrupt source must be determined by the exception
handling routine.
Interrupts IRQ
to IRQ
0
These interrupts are detected by either rising edge sensing or falling edge sensing, depending on
the settings of bits IEG0 to IEG4 in the edge select register (IEGR).
When these pins are designated as pins IRQ
PMR2) and the designated edge is input, the corresponding bit in IRR1 is set to 1, requesting an
interrupt. Interrupts IRQ
All interrupts can be masked by setting the I bit in CCR to 1.
When IRQ
to IRQ
0
4
numbers 4 to 8 are assigned to interrupts IRQ
to IRQ
(low). Table 3.2 gives details.
4
Description
[Clearing conditions]
When IWPFn = 1, it is cleared by writing 0 to IWPFn.
[Setting conditions]
IWPFn is set when pin WKP
edge input is detected at the pin.
to WKP
0
: Interrupts WKP
7
. When these pins are designated as WKP
: Interrupts IRQ
4
to IRQ
can be disabled by clearing bits IEN0 to IEN4 in IENR1 to 0.
0
4
interrupt exception handling is initiated, the I bit in CCR is set to 1. Vector
is set to wakeup interrupt input, and a falling
n
and IRQ
to IRQ
7
0
to WKP
are requested by falling edge inputs at
0
7
0
to WKP
0
are requested by inputs into pins IRQ
to IRQ
0
4
to IRQ
in port mode registers 1 and 2 (PMR1 and
0
4
to IRQ
. The order of priority is from IRQ
0
4
.
4
to WKP
pins in port mode register
7
to WKP
0
is 9. Since all eight interrupts are
7
(initial value)
(n = 7 to 0)
, the CCR I
7
to IRQ
.
0
4
(high)
0
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3635H8/3636

Table of Contents