HD6433935 Hitachi, HD6433935 Datasheet - Page 84

no-image

HD6433935

Manufacturer Part Number
HD6433935
Description
8-Bit MICROCONTROLLER
Manufacturer
Hitachi
Datasheet
7. Wakeup Edge Select Register (WEGR)
WEGR is an 8-bit read/write register that specifies rising or falling edge sensing for pins WKPn.
WEGR is initialized to H'00 by a reset.
Bit n: WKPn edge select (WKEGSn)
Bit n selects WKPn pin input sensing.
Bit n
WKEGS
0
1
3.3.3
There are 12 external interrupts: IRQ
1. Interrupts WKP
Interrupts WKP
WKP
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
number 9 is assigned to interrupts WKP
vector number, so the interrupt-handling routine must discriminate the interrupt source.
2. Interrupts IRQ
Interrupts IRQ4 to IRQ
detected by either rising edge sensing or falling edge sensing, depending on the settings of bits
IEG
72
Bit
Initial value
Read/Write
4
0
to IEG
. When these pins are designated as pins WKP
External Interrupts
7
1
to WKP
in IEGR.
Description
WKPn pin falling edge detected
WKPn pin rising edge detected
7
WKEGS7
to WKP
4
7
R/W
to IRQ
to WKP
7
0
0
interrupt exception handling is initiated, the I bit is set to 1 in CCR. Vector
1
are requested by input signals to pins IRQ
0
1
are requested by either rising or falling edge input to pins WKP
WKEGS6
0
R/W
6
0
WKEGS5
4
to IRQ
R/W
7
5
0
to WKP
0
and WKP
WKEGS4
0
R/W
. All eight interrupt sources have the same
4
0
7
to WKP
7
WKEGS3
to WKP
R/W
3
0
0
in port mode register 5 and a
0
WKEGS2
4
.
to IRQ
R/W
2
0
1
. These interrupts are
WKEGS1
R/W
1
0
(initial value)
WKEGS0
(n = 7 to 0)
R/W
7
0
0
to

Related parts for HD6433935