Interrupt Types - Motorola DSP56000 Manual

24-bit digital signal processor
Hide thumbs Also See for DSP56000:
Table of Contents

Advertisement

EXCEPTION PROCESSING STATE (INTERRUPT PROCESSING)
the main uses of interrupts is to transfer data between DSP memory or registers and a
peripheral device. When such an interrupt occurs, a limited context switch with minimal
overhead is ideal. A fast interrupt accomplishes a limited context switch. The processor
relies on a long interrupt when it must accomplish a more complex task to service the
interrupt. Fast interrupts and long interrupts are described in more detail in Section 7.3.1.
There are many sources for interrupts on the DSP56K family of chips, and some of these
sources can generate more than one interrupt. The DSP56K family of processors fea-
tures a prioritized interrupt vector scheme with 32 vectors to provide fast interrupt ser-
vice. The interrupt priority structure is discussed in Section 7.3.2. The following list
outlines how the DSP56K processes interrupts:
1. A hardware interrupt is synchronized with the DSP clock, and the interrupt
pending flag for that particular hardware interrupt is set. An interrupt source
can have only one interrupt pending at any given time.
2. All pending interrupts (external and internal) are arbitrated to select which
interrupt will be processed. The arbiter automatically ignores any interrupts
with an IPL lower than the interrupt mask level in the SR and selects the
remaining interrupt with the highest IPL.
3. The interrupt controller then freezes the program counter (PC) and fetches two
instructions at the two interrupt vector addresses associated with the selected
interrupt.
4. The interrupt controller jams the two instructions into the instruction stream
and releases the PC, which is used for the next instruction fetch. The next
interrupt arbitration then begins.
If neither instruction is a change of program-flow instruction (i.e., a JSR), the state of the
machine is not saved on the stack, and a fast interrupt is executed. A long interrupt
occurs if one of the interrupt instructions fetched is a JSR instruction. The PC is immedi-
ately released, the SR and the PC are saved in the stack, and the jump instruction con-
trols where the next instruction shall be fetched. While either an unconditional jump or a
conditional jump can be used to form a long interrupt, they do not store the PC on the
stack. Therefore, there is no return path.
Activities 2 and 3 listed above require two additional control cycles, which effectively
make the interrupt pipeline five levels deep.

7.3.1 Interrupt Types

The DSP56K relies on two types of interrupt routines: fast and long. The fast interrupt
MOTOROLA
PROCESSING STATES
7 - 11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56k

Table of Contents