Interrupt Priority Structure; Configuring Interrupt Sources; Table 7-5 Interrupt Priority Level Summary; Table 7-6 Interrupt Mask Bit Definition In The Status Register - Motorola DSP56800 Manual

16-bit digital signal processor
Table of Contents

Advertisement

Interrupts and the Processing States
It is required that a two-word JSR instruction is present in any interrupt vector location that may be fetched
during exception processing. If an interrupt vector location is unused, then the JSR instruction is not
required.
The hardware reset and COP reset are special cases because they are reset vectors, not interrupt vectors.
There is no IPL specified for these two because these conditions reset the chip and reset takes precedence
over any interrupt. Typically a two-word JMP instruction is used in the reset vectors. The hardware reset
vector will either be at address $0000 or $E000 and the COP reset vector will either be at $0002 or $E002
depending on the operating mode of the chip. The different operating modes are discussed in
Section 5.1.9.1, "Operating Mode Bits (MB and MA)—Bits 1–0," on page 5-10.
7.3.3

Interrupt Priority Structure

Interrupts are organized in a simple priority structure. Each interrupt source has an associated IPL: Level 0
or Level 1. Level 0, the lowest level, is maskable, and Level 1 is non-maskable. Table 7-5 summarizes the
priority levels and their associated interrupt sources.
IPL
0
1
The interrupt mask bits (I1, I0) in the SR reflect the current priority level and indicate the IPL needed for
an interrupt source to interrupt the processor (see Table 7-6). Interrupts are inhibited for all priority levels
below the current processor priority level. Level 1 interrupts, however, are not maskable and, therefore,
can always interrupt the processor.
Table 7-6. Interrupt Mask Bit Definition in the Status Register
I1
0
0
1
1
7.3.4

Configuring Interrupt Sources

The interrupt unit in the DSP56800 core supports seven interrupt channels for use by on-chip peripherals,
in addition to the IRQ interrupts and interrupts generated by the DSP core. Each maskable interrupt source
can individually be enabled or disabled as required by the application. The exact method for doing so is
dependant on the particular DSP56800-based device, as some of the interrupt handling logic is
implemented as an on-chip peripheral.
One example of how interrupts can be enabled and disabled, and their priority level established, is with an
interrupt priority register (IPR).
7-8
Table 7-5. Interrupt Priority Level Summary
Description
Maskable
On-chip peripherals,
IRQA and IRQB
Non-maskable
Illegal instruction, OnCE trap,
HWS overflow, SWI
I0
Exceptions Permitted
0
(Reserved)
1
IPL 0, 1
0
(Reserved)
1
IPL 1
DSP56800 Family Manual
Interrupt Sources
Exceptions Masked
(Reserved)
None
(Reserved)
IPL 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents