R5S72011 RENESAS [Renesas Technology Corp], R5S72011 Datasheet - Page 162

no-image

R5S72011

Manufacturer Part Number
R5S72011
Description
32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7200 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Section 6 Interrupt Controller (INTC)
6.4.4
IRQ Interrupts
IRQ interrupts are input from pins IRQ7 to IRQ0. As regard to the setting method of pins IRQ7 to
IRQ0, see section 23, Pin Function Controller (PFC). For the IRQ interrupts, low-level, falling-
edge, rising-edge, or both-edge detection can be selected individually for each pin by the IRQ
sense select bits (IRQ71S to IRQ01S and IRQ70S to IRQ00S) in interrupt control register 1
(ICR1). The priority level can be set individually in a range from 0 to 15 for each pin by interrupt
priority registers 01 and 02 (IPR01 and IPR02).
When using low-level sensing for IRQ interrupts, an interrupt request signal is sent to the INTC
while the IRQ7 to IRQ0 pins are low. An interrupt request signal is stopped being sent to the
INTC when the IRQ7 to IRQ0 pins are driven high. The status of the interrupt requests can be
checked by reading the IRQ interrupt request bits (IRQ7F to IRQ0F) in the IRQ interrupt request
register (IRQRR).
When using edge-sensing for IRQ interrupts, an interrupt request is detected due to change of the
IRQ7 to IRQ0 pin states, and an interrupt request signal is sent to the INTC. The result of IRQ
interrupt request detection is retained until that interrupt request is accepted. Whether IRQ
interrupt requests have been detected or not can be checked by reading the IRQ7F to IRQ0F bits in
IRQRR. Writing 0 to these bits after reading them as 1 clears the result of IRQ interrupt request
detection.
The IRQ interrupt exception handling sets the I3 to I0 bits in SR to the priority level of the
accepted IRQ interrupt.
When restoring from the service routine of IRQ interrupt exception handling, execute the RTE
instruction after an interrupt request has been cleared in the IRQ interrupt request register
(IRQRR).
Rev. 2.00 Sep. 07, 2007 Page 134 of 1164
REJ09B0321-0200

Related parts for R5S72011