Expansion Bus I/O Port Operation
8-21
Expansion Bus
8.4.3.2
Example 2 (transfer with frame synchronization)
In this example ten frames of 256 words from a FIFO located in XCE0 are
transferred into internal data memory at 8000 0000h. This example simply
sets up the source and destination registers, and starts the DMA with incre-
menting destination address and a non-changing source address. The source
address does not change, since the FIFO is located in a fixed memory location.
Active(high) EXT_INT4 is used for frame synchronization. The content of the
relevant registers, and the content of the DMA channel primary and secondary
control register fields are shown in Table 8–11, Table 8–12, and Table 8–13.
Table 8–11.
Content of Relevant Registers (multiple frame transfer)
Register
Content
DMA Primary Control Register
0401 0041h
DMA Secondary Control Register
0008 0000h
DMA Source
4000 0000h
DMA Destination
8000 0000h
Transfer Counter Register
000A 0100h
Global Counter Reload Register A
0000 0100h
Table 8–12. Content of TMS320C6202 DMA Primary Control Register
DST
reload
SRC
reload
EMOD
FS
TCINT
PRI
WSYNC
RSYNC
INDEX
CNT
reload
SPLIT
ESZISE
DST
DIR
SRC
DIR
STATUS
START
00
00
0
1
0
0
00000 00100 0
0
00
00
01
00
00
01
Table 8–13. Content of TMS320C6202 DMA Secondary Control Register
Reserved
SYNC
CNTL
DMAC EN
WSYNC CLR/WSYNC STAT/RSYNC CLR/RSYNC STAT/WDROP IE/WDROP COND/WDROP COND/
RDROP IE/RDROP COND/BLOCK IE/BLOCK COND/LAST IE/LAST COND/FRAME IE
0000 0000 00
001
0 00
0000 0000 0000 0000