AN2168 Freescale Semiconductor / Motorola, AN2168 Datasheet - Page 27

no-image

AN2168

Manufacturer Part Number
AN2168
Description
ColdFire Microprocessor DMA Controller Application Note
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
DSR0
DIVR0
_main:
init:
start:
AN2168
MOTOROLA
equ
equ
.align 0x10
XDEF
nop
move.w #$2000,D0
move.w D0,SR
move.l #VBR,D0
movec
move.b #0x08,d0
move.l d0,ICR6
move.l #0xFFFFBFFF,d0
move.l d0,IMR
nop
move.b #0x40,d0
move.b d0,DIVR0
move.b #0x01,d0
move.b d0,DSR0
move.l #0x20000,d0
move.l d0,SAR0
move.l #0x40000,d0
move.l d0,DAR0
move.w #0x40,d0
move.w d0,BCR0
move.w #0x8048,d0
move.w d0,DCR0
move.w DCR0,d0
bset.l #0,d0
move.w d0,DCR0
D0,VBR
MBAR+0x310
MBAR+0x314
_main
;Reset SR. Interrupts
;possible at levels 0-7
;define the init location of the
;Vector Base register
;set DMA ICR for level 2, priority 0
;enable DMA0 interrupt in IMR
;program the DIVR to return vector 40 in
;response to an IACK for DMA channel 0
;clear the DMA status register
;set the source address to 0x20000
;set the destination address to 0x40000
;transfer the 64 bytes of data at 0x20000
;see the source data section above
;interrupt enabled, source and destination
;are both longword with increment enabled.
;set START bit to
;begin the DMA transfer
DMA Interrupt Example
Application Note
27

Related parts for AN2168