h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 180

no-image

h8s-2138

Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 5 Interrupt Controller
5.5.3
Three-level masking is implemented for IRQ interrupts and on-chip supporting module interrupts
by means of the I and UI bits in the CPU’s CCR, and ICR.
For example, if the interrupt enable bit for an interrupt request is set to 1, and H'20, H'00, and H'00
are set in ICRA, ICRB, and ICRC, respectively, (i.e. IRQ2 and IRQ3 interrupts are set to control
level 1 and other interrupts to control level 0), the situation is as follows:
Figure 5.9 shows the state transitions in these cases.
Rev. 4.00 Jun 06, 2006 page 126 of 1004
REJ09B0301-0400
Control level 0 interrupt requests are enabled when the I bit is cleared to 0, and disabled when
set to 1.
Control level 1 interrupt requests are enabled when the I bit or UI bit is cleared to 0, and
disabled when both the I bit and the UI bit are set to 1.
When I = 0, all interrupts are enabled
(Priority order: NMI > IRQ2 > IRQ3 > address break > IRQ0 > IRQ1 ...)
When I = 1 and UI = 0, only NMI, IRQ2, IRQ3, and address break interrupts are enabled
When I = 1 and UI = 1, only NMI and address break interrupts are enabled
Exception handling execution
All interrupts enabled
Interrupt Control Mode 1
or I 1, UI 1
Figure 5.9 Example of State Transitions in Interrupt Control Mode 1
I 0
break interrupts enabled
Only NMI and address
I 1, UI 0
I 0
UI 0
Exception handling execution
and address break interrupts
Only NMI, IRQ2, IRQ3,
or UI 1
enabled

Related parts for h8s-2138