EasyManua.ls Logo

Texas Instruments CC3235 SimpleLink Series - Page 120

Texas Instruments CC3235 SimpleLink Series
799 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Functional Description
www.ti.com
120
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Direct Memory Access (DMA)
4.2.2 Priority
The µDMA controller assigns priority to each channel based on the channel number and the priority level
bit for the channel. Channel number 0 has the highest priority; as the channel number increases, the
priority of a channel decreases. Each channel has a priority level bit to provide two levels of priority:
default priority and high priority. If the priority level bit is set, then that channel has higher priority than all
other channels at default priority. If multiple channels are set for high priority, then the channel number
determines relative priority among all the high-priority channels.
The priority bit for a channel can be set using the DMA Channel Priority Set (PRIOSET) register and
cleared with the DMA Channel Priority Clear (PRIOCLR) register.
4.2.3 Arbitration Size
When a µDMA channel requests a transfer, the µDMA controller arbitrates among all the channels making
a request, then services the µDMA channel with the highest priority. Once a transfer begins, it continues
for a selectable number of transfers before rearbitrating among the requesting channels again. The
arbitration size can be configured for each channel, ranging from 1 to 1024 item transfers. After the µDMA
controller transfers the number of items specified by the arbitration size, it then checks among all the
channels making a request, and services the channel with the highest priority. If a lower priority µDMA
channel uses a large arbitration size, the latency for higher priority channels is increased, as the µDMA
controller completes the lower priority burst before checking for higher priority requests. Therefore, lower
priority channels should not use a large arbitration size for best response on high-priority channels.
The arbitration size can also be thought of as a burst size, because it is the maximum number of items
that are transferred at any time in a burst. Here, the term arbitration refers to determination of µDMA
channel priority, not arbitration for the bus. When the µDMA controller arbitrates for the bus, the processor
always takes priority. Furthermore, the µDMA controller is held off whenever the processor must perform a
bus transaction on the same bus, even in the middle of a burst transfer.
4.2.4 Channel Configuration
The µDMA controller uses an area of system memory to store a set of channel control structures in a
table. The control table may have one or two entries for each µDMA channel. Each entry in the table
structure contains source and destination pointers, transfer size, and transfer mode. The control table can
be anywhere in system memory, but it must be contiguous and aligned on a 1024-byte boundary.
Table 4-2 shows the layout in memory of the channel control table. Each channel may have one or two
control structures in the control table: a primary control structure and an optional alternate control
structure. The table is organized so that all of the primary entries are in the first half of the table, and all
the alternate structures are in the second half of the table. The primary entry is used for simple transfer
modes, where transfers can be reconfigured and restarted after each transfer is complete. In this case, the
alternate control structures are not used and therefore only the first half of the table must be allocated in
memory; the second half of the control table is not necessary, and that memory can be used for
something else. If a more complex transfer mode is used such as ping-pong or scatter-gather, then the
alternate control structure is also used and memory space should be allocated for the entire table.
Any unused memory in the control table may be used by the application. This includes the control
structures for any channels that are unused by the application, as well as the unused control word for
each channel.

Table of Contents