
269
CHAPTER 11 EXTERNAL INTERRUPT 1 CIRCUIT (EDGE)
11.4
External Interrupt 1 Circuit Interrupts
The external interrupt circuit can generate interrupt requests when it detects a specified
edge on the signal input to an external interrupt pin.
I Interrupts when the external interrupt 1 circuit is operating
On detecting a specified edge on an external interrupt input, the external interrupt circuit sets the
corresponding external interrupt request flag bit (EIC1, EIC2 : EIR0 - EIR3) to "1". An interrupt request to
the CPU (IRQ0 - IRQ3) is generated at this time if the corresponding interrupt request enable bit is enabled
(EIC1, EIC2,: EIE0 - EIE3 = "1"). Always write "0" to the corresponding external interrupt request flag bit
in the interrupt processing routine to clear the interrupt request.
Note:
When enabling interrupts (EIE0 - EIE3 = “1”) after exit of a reset, always clear the corresponding
external interrupt request flag bit (EIR0 - EIR3 = “0”) at the same time.
Interrupt processing cannot return if the external interrupt request flag bit is “1” and the interrupt
request enable bit is enabled. Always clear the external interrupt request flag bit.
Reference:
Cancelling stop mode using an interrupt is only possible using the external interrupt circuit.
An interrupt request is generated immediately if the external interrupt request flag bit is "1" when the
interrupt request enable bit is changed from disabled to enabled ("0" --> "1").
I Register and vector table for the external interrupt circuit interrupts
See Section
3.4.2 "Interrupt Processing" for details on the operation of interrupts.
I Notes when changing edge polarity selection
When changing the edge polarity for INT10 to INT13, always write "0" into the corresponding EIR bits.
This will prevent accidentally creating an interrupt.
Table 11.4-1 Register and vector table for external interrupt 1 circuit interrupts
Interrupt
Interrupt Level Setting Register
Vector Table Address
Register
Setting Bits
Upper
Lower
IRQ0
ILR1 (007BH)
L01 (bit1)
L00 (bit0)
FFFAH
FFFBH
IRQ1
ILR1 (007BH)
L11 (bit3)
L10 (bit2)
FFF8H
FFF9H
IRQ2
ILR1 (007BH)
L21 (bit5)
L20 (bit4)
FFF6H
FFF7H
IRQ3
ILR1 (007BH)
L31 (bit7)
L30 (bit6)
FFF4H
FFF5H