English
Language : 

SH7727 Datasheet, PDF (241/1109 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
Section 7 Interrupt Controller (INTC)
7.2 Interrupt Sources
There are five types of interrupt sources: NMI, IRQ, IRL, PINT, and on-chip supporting modules.
Each interrupt has priority levels (0 to 16) with 0 the lowest and 16 the highest. Priority level 0
masks an interrupt.
7.2.1 NMI Interrupts
The NMI interrupt has the highest priority level of 16. When the BLMSK bit of the interrupt
control register (ICR1) is 1 or the BL bit of the status register (SR) is 0, NMI interrupts are
accepted when the MAI bit of the ICR1 register is 0. NMI interrupts are edge-detected. In sleep or
standby mode, the interrupt is accepted regardless of the BL. The NMI edge select bit (NMIE) in
the interrupt control register 0 (ICR0) is used to select either the rising or falling edge. When the
NMIE bit of the ICR0 register is changed, the NMI interrupt is not detected for 20 cycles after
changing the ICR0.NMIE to avoid a false detection of the NMI interrupt. NMI interrupt exception
handling does not affect the interrupt mask level bits (I3 to I0) in the status register (SR).
When the BLMSK bit of the ICR1 register is set to 1 and only NMI interrupts are accepted, the
SPC register and SSR register are updated by the NMI interrupt handler, making it impossible to
return to the original processing from exception handling initiated prior to the NMI. Use should
therefore be restricted to cases where return is not necessary.
It is possible to wake the chip up from the standby state with an NMI interrupt (except when the
MAI bit of the ICR1 register is set to 1).
7.2.2 IRQ Interrupt
IRQ interrupts are input by priority from pins IRQ0 to IRQ5 with a level or an edge. The priority
level can be set by priority setting registers C, D (IPRC, IPRD) in a range from levels 0 to 15.
When using edge sensing for IRQ interrupts, do the following to clear IR0.
To clear bits IRQ5R to IRQ0R to 0, read from IRR0 before writing. After confirming that the bits
to be cleared to 0 are set to 1, write 0 to them. In this case write 0 only to the bits to be cleared;
write 1 to the other bits. The values of the bits to which 1 is written do not change.
When level sensing is used for IRQ interrupts, bits IRQ5R to IRQ0R indicate whether or not an
interrupt request has been input. They can be set and cleared by the values input to pins IRQ5R to
IRQ0R alone.
Rev. 5.00 Dec 12, 2005 page 169 of 1034
REJ09B0254-0500