Motorola DSP56600 Manual page 60

Application optimization for digital signal processors
Table of Contents

Advertisement

movep
movep
;DMA ch.0 control word:% 0 1 001 10 0 01111 1 111 0 00 01 00
;DE
0
;DIE
1
;DTM
001
;
;DPR
10
;DCON
0
;DRS
01111
;D3D
1
;DAM[5:3]111
;DAM[2] 0
;DAM[1:0]00
;
;DS[3:2]01
;DS[1:0]00
movep
;============== initialize SCI
movep #$8200,x:M_SCR
movep #$1,x:M_SCCR
movep #$7,x:M_PCRE
;============== initialize the core
bset
andi
bset
...
;============== interrupt vectors and routines
org
jsr
...
MOTOROLA
Optimizing DSP56300/DSP56600 Applications
#0,x:M_DOR2
;offset register 2,
;added every word
;(DCOL) to destination address.
#-2,x:M_DOR3
;offset register 3,
;added every 3 words
;(DCOM) to destination address
channel not armed (yet)
DMA interrupts enabled
word transfer triggered by request source,
DE disarmed at end of count.
chann. priority (lower than channel 1 - receive)
continuous mode disabled
DMA request source - SCI transmit
3 dimensional mode enabled
dest. addressing - 3D, with offsets DOR2:DOR3
source address 3D (DOR0:DOR1).
3D counter mode: DCOH 12 bits, DCOM 6 bits,
DCOL 6 bits.
transfer destination: y memory.
transfer source: x memory.
#$4c7f84,x:M_DCR0;load control register,
;not triggered.
;8 bits sync. mode, transmit
;enable, clock invert.
;max freq/2, int. clock for TRx.
;enable SCI pins
#13,x:M_IPRC
;DMA channel 0 interrupt
;priority 1.
#$fc,mr
;enable interrupts
#23,x:M_DCR0
;activate Tx DMA transfer.
p:I_DMA0
<_FILL_TX_BUF
Using the DMA
Servicing a Peripheral
4-11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56300

Table of Contents