CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 (EDGE)
10.4.2 External Interrupt 1 Control Register 2 (EIC2)
The external interrupt 1 control register 2 (EIC2) is used to select the edge polarity and
to control interrupts for external interrupt pin (INT2).
External Interrupt 1 Control Register 2 (EIC2)
Address
Bit 7
0024
H
R/W : Readable and writable
: Unused
X
: Indeterminate
: Initial value
Table 10.4-2 External Interrupt 1 Control Register 2 (EIC2) Bits
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
238
Figure 10.4-3 External Interrupt 1 Control Register 2 (EIC2)
Bit 6
Bit 5
Bit 4
Bit 3
EIR2
R/W
INT2 (IRQ2)
EIE2
0
Disables interrupt request output.
1
Enables interrupt request output.
SL21 SL20
0
0
1
1
EIR2
0
The specified edge has not been input. Clears this bit.
1
The specified edge has been input.
Bit
•
Unused bit
•
•
EIR2:
External
interrupt
•
request flag
bit 2
•
Bit 2
Bit 1
Bit 0
SL21
SL20
EIE2
R/W
R/W
R/W
Interrupt request enable bit 2
Edge polarity selection bit 2
0
Rising edge
1
Falling edge
0
Both edges
1
Both edges
External interrupt request flag bit 2
Read
The read value is indeterminate.
Writing to this bit has no effect on the operation.
This bit is set to "1" when the edge selected by the edge
polarity selection bit 2 (SL20, SL21) is input to an external
interrupt pin INT2.
An interrupt request is output when both this bit and the
interrupt request enable bit 2 (EIE2) are "1".
Writing "0" clears this bit. Writing "1" has no effect and does
not change the bit value.
Initial value
XXXX0000
B
Write
No effect. The bit does not change.
Function