Enhanced Direct Memory Access Controller (eDMA)
21-52
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
21.5.4
DMA Arbitration Mode Considerations
21.5.4.1
Fixed-Group Arbitration, Fixed-Channel Arbitration
In this mode, the channel service request from the highest priority channel in the highest priority group is
selected to execute. If the eDMA is programmed so the channels within one group use fixed priorities, and
that group is assigned the highest fixed priority of all groups, it is possible for that group to take all the
bandwidth of the eDMA controller. That is, no other groups can be serviced if there is always at least one
DMA request pending on a channel in the highest priority group when the controller arbitrates the next
DMA request. The advantage of this scenario is that latency can be small for channels that need to be
serviced quickly. Preemption is available in this scenario only.
21.5.4.2
Round-Robin Group Arbitration, Fixed-Channel Arbitration
When one or more DMA requests arrive from one or more groups, the channel with the highest priority
from a specific group is serviced first. Groups are serviced starting with the highest group number with a
service request and rotating through to the lowest group number containing a service request.
After the channel request is serviced, the group round robin algorithm selects the highest pending request
from the next group in the round-robin sequence. Servicing continues round robin, always servicing the
highest priority channel in the next group in the sequence, or skipping a group if it has no pending requests.
If a channel requests service at a rate that equals or exceeds the round robin service rate, then that channel
is always serviced before lower priority channels in the same group, and the lower priority channels are
never serviced. The advantage of this scenario is that no one group can consume all the eDMA bandwidth.
The highest priority channel selection latency is potentially greater than fixed/fixed arbitration. Excessive
request rates on high-priority channels can prevent the servicing of lower priority channels in the same
group.
21.5.4.3
Round-Robin Group Arbitration, Round-Robin Channel Arbitration
Groups are serviced as described in
Section 21.5.4.2, Round-Robin Group Arbitration, Fixed-Channel
but this time channels are serviced in channel number order. One channel only is serviced from
each requesting group for each round robin pass through the groups.
Within each group, channels are serviced starting with the highest channel number and rotating through to
the lowest channel number without regard to channel priority levels.
Because channels are serviced in round-robin manner, any channel that generates DMA requests faster
than a combination of the group round-robin service rate and the channel service rate for its group does
not prevent the servicing of other channels in its group. Any DMA requests that are not serviced are simply
lost, but at least one channel gets serviced.
This scenario ensures that all channels are guaranteed service at some point, regardless of the request rates.
However, the potential latency could be high. All channels are treated equally. Priority levels are not used
in round-robin/round-robin mode.
Summary of Contents for PXR4030
Page 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Page 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Page 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Page 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Page 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Page 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...