DMA Transfer Programming
MSC8113 Reference Manual, Rev. 0
Freescale Semiconductor
16-33
16.3.2 DMA Data Transfer Examples
Typical DMA programming schemes include the following:
Simple buffer transfer from a system bus external peripheral to internal memory on the
local bus
Cyclic block transfer from system bus external memory to internal memory on the local
bus
Continuous block transfer from an external peripheral to internal memory on the local bus
Simple buffer transfer from M2 to M1 on the local bus in Flyby mode
Note:
Refer to Section 16.4, DMA Programming Model, on page 16-34 for DMA controller
register descriptions. For details on programming a base address, see Section 12.8,
Memory Controller Programming Model, on page 12-95.
16.3.3 Terminating a DMA Transfer
To stop the DMA transfer temporarily, set the DCHCR[FRZ] bit. When set, this bit masks
requests assigned to the specific channel and the requestor is not serviced. All other internal
states are unaffected, so clearing this bit resumes DMA transfer without loss of data or requests.
Because the DMA controller uses pipelining, up to 96 bytes can remain in the channel FIFO and
not be delivered to the destination. This data is transferred when the channel is enabled. A DMA
channel is terminated externally either when the peripheral asserts the
DONE
signal or you clear
the DCHCR[ACTV] bit.
Either source channel or destination channel can be terminated. Termination of the source (read)
channel proceeds as follows:
1.
The DMA controller ignores any further requests from the peripheral.
2.
All the data in the FIFO is transferred to the destination channel (flushed).
3.
If transfer size is bigger than the data stored in the FIFO, additional data is flushed.
4.
DCPRAM[BD_SIZE] and DCPRAM[BD_ADDR] are updated to the correct size and
address of the buffer serviced by the DMA until the source channel is terminated.
5.
If enabled, an interrupt is generated after the last data is written to the destination
channel.
6.
The DCHCR[ACTV] bit of the destination is not cleared. You must clear the channel
before reusing it.
Termination of the destination (write) channel proceeds as follows:
1.
The DMA controller ignores any further requests from the peripheral.
2.
Tasks in progress — bus data phase, bus address phase, and pending phase — are
flushed.
Summary of Contents for MSC8113
Page 1: ...MSC8113 Reference Manual Tri Core 16 Bit Digital Signal Processor MSC8113RM Rev 0 May 2008 ...
Page 20: ...MSC8113 Reference Manual Rev 0 xx Freescale Semiconductor Contents ...
Page 28: ...MSC8113 Reference Manual Rev 0 xxviii Freescale Semiconductor ...
Page 56: ...MSC8113 Reference Manual Rev 0 1 28 Freescale Semiconductor MSC8113 Overview ...
Page 76: ...MSC8113 Reference Manual Rev 0 2 20 Freescale Semiconductor SC140 Core Overview ...
Page 134: ...MSC8113 Reference Manual Rev 0 4 30 Freescale Semiconductor System Interface Unit SIU ...
Page 168: ...MSC8113 Reference Manual Rev 0 6 18 Freescale Semiconductor Boot Program ...
Page 180: ...MSC8113 Reference Manual Rev 0 7 12 Freescale Semiconductor Clocks ...
Page 260: ...MSC8113 Reference Manual Rev 0 8 80 Freescale Semiconductor Memory Map ...
Page 300: ...MSC8113 Reference Manual Rev 0 9 40 Freescale Semiconductor Extended Core ...
Page 304: ...MSC8113 Reference Manual Rev 0 10 4 Freescale Semiconductor MQBus and M2 Memory ...
Page 308: ...MSC8113 Reference Manual Rev 0 11 4 Freescale Semiconductor SQBus ...
Page 590: ...MSC8113 Reference Manual Rev 0 17 46 Freescale Semiconductor Interrupt Processing ...
Page 614: ...MSC8113 Reference Manual Rev 0 18 24 Freescale Semiconductor Debugging ...
Page 622: ...MSC8113 Reference Manual Rev 0 19 8 Freescale Semiconductor Internal Peripheral Bus IPBus ...
Page 724: ...MSC8113 Reference Manual Rev 0 21 32 Freescale Semiconductor UART ...
Page 920: ...MSC8113 Reference Manual Rev 0 25 150 Freescale Semiconductor Ethernet Controller ...
Page 1171: ...MSC8113 Reference Manual Rev 0 Freescale Semiconductor C 61 EF wait_rts P 01077FFC 9F rts 71 ...
Page 1172: ...MSC8113 Reference Manual Rev 0 C 62 Freescale Semiconductor MSC8113 Boot Code ...
Page 1202: ...MSC8113 Reference Manual Rev 0 Index 30 Freescale Semiconductor Index ...