DSP56309EVM Freescale Semiconductor, DSP56309EVM Datasheet - Page 96

KIT EVALUATION FOR XC56309

DSP56309EVM

Manufacturer Part Number
DSP56309EVM
Description
KIT EVALUATION FOR XC56309
Manufacturer
Freescale Semiconductor
Type
DSPr
Datasheets

Specifications of DSP56309EVM

Contents
Module Board, Installation Guide, Power Supply, Cable, Software and more
Description/function
Audio DSPs
Product
Audio Modules
For Use With/related Products
DSP56309
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Programming the Peripherals
Configuring interrupts requires two steps:
Events that change bits in the peripheral control registers can then trigger the interrupt.
Depending on the peripheral, from two to six peripheral interrupt sources are available to the
programmer.
Example 5-2 shows a short interrupt programmed for the HI08. The main program enables the
Host Receive Interrupt in the Host Control Register (HCR). When the interrupt is triggered
during code execution, the core processing jumps to the Host Receive Interrupt routine location
at p:$60 and executes the code there. Since this is a short interrupt, the core returns to normal
code execution after executing the two move instructions, and an RTI instruction is not
necessary.
; Short Interrupt Routine
5.4.3 DMA
The Direct Memory Access (DMA) controller permits data transfers between internal/external
memory and/or internal/external I/O in any combination without the intervention of the
DSP56309 core. Dedicated DMA address and data buses and internal memory partitioning
ensure that a high level of isolation is achieved so the DMA operation does not interfere with the
core operation or slow it down. The DMA moves data to/from the peripheral transmit/receive
registers. The programmer can use the DMA control registers to configure sources and
destinations of data transfers. Depending on the peripheral, one to four peripheral request sources
are available. This is the most efficient method of data transfer available. Core intervention is not
required after the DMA channel is initialized.
5-4
1.
2.
bset#M_HRIE,x:M_HCR ; enable host receive interrupt
orgP:$60
movepx:M_HRX,x1
movex1,y:(r0)+
Setting up the interrupt routine
a.
b.
Enabling the interrupts
a.
b.
c.
The interrupt handler is located at the interrupt starting address.
The interrupt routines can be short (only two opcodes long) or long (more than two
opcodes and requiring a JSR instruction).
Set the corresponding bits in the applicable peripheral control register.
Enable peripheral interrupts in the Interrupt Priority Register (IPRP).
Enable global interrupts in the Mode Register (MR) portion of the Status Register
(SR).
; HI08 Receive Data Full interrupt
DSP56309 User’s Manual, Rev. 1
Example 5-2. Interrupts
Freescale Semiconductor

Related parts for DSP56309EVM