Chapter 5
Interrupt Controller
V - 48 Noise Filter Function
■ Disable Noise Filter and programmable active edge Setup Example
The external interrupt 0 (IRQ0) is generated at the rising edge of the input signal from P74 pin.
Setup Procedure Description
(1) Disable the interrupt
G2ICR(0x00008908)
bp8: G2IE0=0
(1) Set the G2IE0 flag of the G2ICR register to “0” to disable
the interrupt.
(2) Set the interrupt generation condition
(disable both-edge detection)
IRQEDGESEL(0x0000A056)
bp0: IRQEG0=0
(2) Set the IRQEG0 flag of the edge detection register
(IRQEDGE) to “0” to set the both-edge interrupt
detection disabled.
(3) Set the interrupt generation condition (falling
edge)
EXTMD0(0x00008A80)
bp1-0: IR0TG1-0=01
(3) Set the IR0TG1-0 flag of the external interrupt condition
specification register 0 (EXTMD0) to “00” to set the
rising edge.
(4) Set the interrupt level
G2ICR(0x00008908)
bp14-12: G2LV2-0=100
(4) Set the interrupt level by the G2LV2-0 flag of the G2ICR
register. If the interrupt request flag has been already
set, clear the interrupt request flag.
(5) Enable the interrupt
G2ICR(0x00008908)
bp8: G2IE0=1
(5) Set the G2IE0 flag of the G2ICR register to “1” to enable
the interrupt.