92
4.3
Interrupts
Interrupt exception handling can be requested by seven external sources (NMI, IRQ
0
to IRQ
5
), and
27 internal sources in the on-chip supporting modules. Figure 4.5 classifies the interrupt sources
and indicates the number of interrupts of each type.
The on-chip supporting modules that can request interrupts are the watchdog timer (WDT), 16-bit
timer, 8-bit timer, serial communication interface (SCI), and A/D converter. Each interrupt source
has a separate vector address.
NMI is the highest-priority interrupt and is always accepted*. Interrupts are controlled by the
interrupt controller. The interrupt controller can assign interrupts other than NMI to two priority
levels, and arbitrate between simultaneous interrupts. Interrupt priorities are assigned in interrupt
priority registers A and B (IPRA and IPRB) in the interrupt controller.
For details on interrupts see section 5, Interrupt Controller.
Note: * In the versions with on-chip flash memory, NMI input is sometimes disabled. For details
see 17.6.4, NMI Input Disabling Conditions.
Interrupts
External interrupts
Internal interrupts
NMI (1)
IRQ to IRQ (6)
WDT
*
(1)
16-bit timer (9)
8-bit timer (8)
SCI (8)
A/D converter (1)
Note:
Numbers in parentheses are the number of interrupt sources.
*
When the watchdog timer is used as an interval timer, it generates an interrupt
request at every counter overflow.
0 5
Figure 4.5 Interrupt Sources and Number of Interrupts
4.4
Trap Instruction
Trap instruction exception handling starts when a TRAPA instruction is executed. If the UE bit is
set to 1 in the system control register (SYSCR), the exception handling sequence sets the I bit to 1
in CCR. If the UE bit is 0, the I and UI bits are both set to 1 in CCR. The TRAPA instruction
fetches a start address from a vector table entry corresponding to a vector number from 0 to 3,
which is specified in the instruction code.
Summary of Contents for H8/3060
Page 10: ......
Page 16: ......
Page 114: ...66 ...
Page 132: ...84 ...
Page 144: ...96 ...
Page 170: ...122 ...
Page 212: ...164 ...
Page 268: ...220 ...
Page 332: ...284 ...
Page 396: ...348 ...
Page 494: ...446 ...
Page 698: ...650 ...
Page 748: ...700 H8 3064F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 8 Sample LED Circuit ...
Page 777: ...729 H8 3062F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 14 Sample LED Circuit ...
Page 810: ...762 ...
Page 994: ...946 ...