
Section 5 Interrupt Controller
Rev. 1.00 Mar. 02, 2006 Page 75 of 798
REJ09B0255-0100
Section 5 Interrupt Controller
5.1
Features
Two interrupt control modes
Two interrupt control modes can be set by means of the INTM1 and INTM0 bits in the system
control register (SYSCR).
Priorities settable with ICR
An interrupt control register (ICR) is provided for setting in each module interrupt priority
levels for all interrupt requests excluding NMI and address breaks.
Three-level interrupt mask control
By means of the interrupt control mode, I and UI bits in CCR and ICR, 3-level interrupt mask
control is performed.
Independent vector addresses
All interrupt sources are assigned independent vector addresses, making it unnecessary for the
source to be identified in the interrupt handling routine.
Forty-one external interrupt pins
NMI is the highest-priority interrupt, and is accepted at all times. Rising edge or falling edge
detection can be selected for NMI. Falling-edge, rising-edge, or both-edge detection, or level
sensing, can be independently selected for
IRQ15 to IRQ0. When the EIVS bit in the system
control register 3 (SYSCR3) is cleared to 0, the IRQ6 interrupt is generated by
IRQ6 or KIN7
to
KIN0. The IRQ7 interrupt is generated by IRQ7 or KIN15 to KIN8. When the EIVS bit in
the system control register 3 (SYSCR3) is set to 1, interrupts are requested on the falling edge
of
KIN15 to KIN0. For WUE15 to WUE8, either rising-edge or falling-edge detection can be
selected individually for each pin regardless of the EIVS bit setting.
Two interrupt vector addresses are selectable
H8S/2140B Group compatible interrupt vector addresses or extended interrupt vector
addresses are selected depending on the EIVS bit in system control register 3 (SYSCR3). In
extended mode, independent vector addresses are assigned for the interrupt vector addresses of
KIN7 to KIN0 or KIN15 to KIN8 interrupts.
General ports for IRQ15 to IRQ0 input are selectable