Functional Description
www.ti.com
126
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Direct Memory Access (DMA)
Table 4-4. 8-Bit Data Peripheral Configuration
Field Configuration
Source data size 8-bit
Destination data size 8-bit
Source address increment No
Destination address increment Byte
Source end pointer Peripheral FIFO register
Destination end pointer End of data buffer in memory
4.2.7 Peripheral Interface
There are two main classes of µDMA-connected peripherals:
• Peripherals with FIFOs serviced by the µDMA to transmit or receive data
• Peripherals that provide trigger inputs to the µDMA
4.2.7.1 FIFO Peripherals
FIFO peripherals contain a FIFO of data to be sent and a FIFO of data that has been received. The µDMA
controller transfers data between these FIFOs and system memory. For example, when a UART FIFO
contains one or more entries, a single transfer request is sent to the µDMA for processing. If this request
has not been processed and the UART FIFO reaches the interrupt FIFO level, another interrupt is sent to
the µDMA which is higher priority than the single-transfer request. In this instance, an ARBSIZ transfer is
performed as configured in the DMACHCTL register. After the transfer is complete, the µDMA sends a
receive or transmit complete interrupt to the UART register.
If the SETn bit of the FIFO peripheral is set in the DMA Channel Useburst Set (DMAUSEBURSTSET)
register, then the µDMA controller only performs transfers defined by the ARBSIZ bit field in the
DMACHCTL register for better bus use. For peripherals that tend to transmit and receive in bursts, such
as the UART, TI recommends against the use of this configuration because it could cause the tail end of
transmissions to stick in the FIFO.
4.2.7.2 Trigger Peripherals
Certain peripherals, such as the general-purpose timer, trigger an interrupt to the µDMA controller when a
programmed event occurs. When a trigger event occurs, the µDMA executes a transfer defined by the
ARBSIZ bit field in the DMACHCTL register. If only a single transfer is needed for a µDMA trigger, then
the ARBSIZ bit field is set to 0x1. If the trigger peripheral generates another µDMA request while the prior
one is being serviced and that particular channel is the highest priority asserted channel, the second
request is processed as soon as the handling of the first request is complete. If two additional trigger
peripheral µDMA requests are generated before the completion of the first, the third request is lost.
4.2.7.3 Software Request
Few µ DMA channels are dedicated to software-initiated transfers. This channel also has a dedicated
interrupt to signal completion of a µDMA transfer. A transfer is initiated by software by first configuring and
enabling the transfer, and then issuing a software request using the DMA Channel Software Request
(DMASWREQ) register. For software-based transfers, use the auto transfer mode.
The DMASWREQ register can initiate a transfer on any channel. If a request is initiated by software using
a peripheral µDMA channel, then the completion interrupt occurs on the interrupt vector for the peripheral
instead of the software interrupt vector. Any channel may be used for software requests, as long as the
corresponding peripheral is not using the µDMA controller for data transfer.