3. Exception Handling
Rev.3.00 Jul. 19, 2007 page 83 of 532
REJ09B0397-0300
Wakeup Interrupt Request Register (IWPR)
Bit
7 6 5 4 3 2 1 0
IWPF7 IWPF6 IWPF5 IWPF4 IWPF3 IWPF2 IWPF1 IWPF0
Initial
value 0 0 0 0 0 0 0 0
Read/Write R/W
*
R/W
*
R/W
*
R/W
*
R/W
*
R/W
*
R/W
*
R/W
*
Note:
*
Only a write of 0 for flag clearing is possible.
IWPR is an 8-bit read/write register, in which the corresponding bit is set to 1 when pins
WKP
7
to
WKP
0
are set to wakeup input and a pin receives a falling edge input. The flags are not cleared
automatically when an interrupt is accepted. It is necessary to write 0 to clear each flag.
Bits 7 to 0—Wakeup Interrupt Request Flags (WKPF7 to WKPF0)
Bit n: IWPFn
Description
0
Clearing condition:
When IWPFn = 1, it is cleared by writing 0 to IWPFn
1
Setting condition:
IWPFn is set when pin
WKP
n
is set to wakeup interrupt input, and a falling edge
input is detected at the pin
Note: n = 7 to 0
3.3.3 External
Interrupts
The H8/3857 Group has 13 external interrupt sources, WKP
7
to WKP
0
, and IRQ
4
to IRQ
0
. The
H8/3854 Group has 12 external interrupt sources, WKP
7
to WKP
0
, IRQ
4
, IRQ
3
, IRQ
1
, and IRQ
0
.
Interrupts WKP
0
to WKP
7
:
Interrupts WKP
0
to WKP
7
are requested by falling edge inputs at
pins
WKP
0
to
WKP
7
. When these pins are designated as
WKP
0
to
WKP
7
pins in port mode register
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
0
to WKP
7
, the CCR I
bit is set to 1. The vector number for interrupts WKP
0
to WKP
7
is 9. Since all eight interrupts are
assigned the same vector number, the interrupt source must be determined by the exception
handling routine.
Содержание F-ZTAT H8 Series
Страница 6: ...Rev 3 00 Jul 19 2007 page iv of xxiv REJ09B0397 0300...
Страница 194: ...7 RAM Rev 3 00 Jul 19 2007 page 168 of 532 REJ09B0397 0300...
Страница 234: ...8 I O Ports Rev 3 00 Jul 19 2007 page 208 of 532 REJ09B0397 0300...
Страница 274: ...9 Timers Rev 3 00 Jul 19 2007 page 248 of 532 REJ09B0397 0300...
Страница 352: ...12 A D Converter Rev 3 00 Jul 19 2007 page 326 of 532 REJ09B0397 0300...
Страница 466: ...16 Electrical Characteristics H8 3854 Group Rev 3 00 Jul 19 2007 page 440 of 532 REJ09B0397 0300...
Страница 561: ......