Texas Instruments Development Kit for TM4C129x,Tiva™ ARM® Cortex™ -M4 Microcontroller DK-TM4C129X DK-TM4C129X Datenbogen

Produktcode
DK-TM4C129X
Seite von 2182
2.
Set bit 7 of the DMA Channel Primary Alternate Clear (DMAALTCLR) register to select the
primary channel control structure for this transfer.
3.
Set bit 7 of the DMA Channel Useburst Clear (DMAUSEBURSTCLR) register to allow the
μDMA controller to respond to single and burst requests.
4.
Set bit 7 of the DMA Channel Request Mask Clear (DMAREQMASKCLR) register to allow
the μDMA controller to recognize requests for this channel.
9.3.3.2
Configure the Channel Control Structure
This example transfers 64 bytes from a memory buffer to the peripheral's transmit FIFO register
using μDMA channel 7. The control structure for channel 7 is at offset 0x070 of the channel control
table. The channel control structure for channel 7 is located at the offsets shown in Table 9-9.
Table 9-9. Channel Control Structure Offsets for Channel 7
Description
Offset
Channel 7 Source End Pointer
Control Table Base + 0x070
Channel 7 Destination End Pointer
Control Table Base + 0x074
Channel 7 Control Word
Control Table Base + 0x078
Configure the Source and Destination
The source and destination end pointers must be set to the last address for the transfer (inclusive).
Because the peripheral pointer does not change, it simply points to the peripheral's data register.
1.
Program the source end pointer at offset 0x070 to the address of the source buffer + 0x3F.
2.
Program the destination end pointer at offset 0x074 to the address of the peripheral's transmit
FIFO register.
The control word at offset 0x078 must be programmed according to Table 9-10.
Table 9-10. Channel Control Word Configuration for Peripheral Transmit Example
Description
Value
Bits
Field in DMACHCTL
Destination address does not increment
3
31:30
DSTINC
8-bit destination data size
0
29:28
DSTSIZE
8-bit source address increment
0
27:26
SRCINC
8-bit source data size
0
25:24
SRCSIZE
Reserved
0
23:22
reserved
Privileged access protection for
destination data writes
0
21
DSTPROT0
a
Reserved
0
20:19
reserved
Privileged access protection for source
data reads
0
18
SRCPROT0
a
Arbitrates after 4 transfers
2
17:14
ARBSIZE
Transfer 64 items
63
13:4
XFERSIZE
N/A for this transfer type
0
3
NXTUSEBURST
Use Basic transfer mode
1
2:0
XFERMODE
a. The value of this bit must be 1 (privileged) for AES, DES, or SHA accesses.
December 13, 2013
726
Texas Instruments-Advance Information
Micro Direct Memory Access (μDMA)