hd64338023s Renesas Electronics Corporation., hd64338023s Datasheet - Page 132

no-image

hd64338023s

Manufacturer Part Number
hd64338023s
Description
Renesas 8-bit Single-chip Microcomputer Super Low Power Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 3 Exception Handling
Wakeup Edge Select Register (WEGR)
WEGR is an 8-bit read/write register that specifies rising or falling edge sensing for pins
WEGR is initialized to H'00 by a reset.
Bit n—
Bit n selects
Bit n
WKEGSn
0
1
3.3.3
There are 13 external interrupts: WKP7 to WKP0, IRQ4, IRQ3, IRQ1, IRQ0, and IRQAEC.
Interrupts WKP
Interrupts WKP7 to WKP0 are requested by either rising or falling edge input to pins
W K P
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 WKP7 to WKP0 interrupt exception handling is initiated, the I bit is set to 1 in CCR.
Vector number 9 is assigned to interrupts WKP7 to WKP0. All eight interrupt sources have the
same vector number, so the interrupt-handling routine must discriminate the interrupt source.
Rev. 7.00 Mar 10, 2005 page 90 of 652
REJ09B0042-0700
Bit
Initial value
Read/Write
0
. When these pins are designated as pins
W K P
External Interrupts
W K P
n Edge Select (WKEGSn)
Description
W K P
W K P
WKEGS7
7
n pin input sensing.
n pin falling edge detected
n pin rising edge detected
to WKP
R/W
7
0
WKEGS6
0
R/W
6
0
WKEGS5
R/W
5
0
WKEGS4
W K P
R/W
4
0
7
to
WKEGS3
W K P
R/W
3
0
0
in port mode register 5 and a
WKEGS2
R/W
2
0
WKEGS1
R/W
1
0
(initial value)
W K P
WKEGS0
(n = 7 to 0)
W K P
R/W
0
0
7
to
n .

Related parts for hd64338023s