EasyManua.ls Logo

Texas Instruments CC3235 SimpleLink Series - Page 122

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
122
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Direct Memory Access (DMA)
4.2.5 Transfer Mode
The µDMA controller supports several transfer modes. Two of the modes support simple 1-time transfers.
Several complex modes support a continuous flow of data.
4.2.5.1 Stop Mode
While stop is not actually a transfer mode, it is a valid value for the mode field of the control word. When
the mode field has this value, the µDMA controller does not perform any transfers, and disables the
channel if it is enabled.
4.2.5.2 Basic Mode
In basic mode, the µDMA controller performs transfers as long as there are more items to transfer, and a
transfer request is present. This mode is used with peripherals that assert a µDMA request signal
whenever the peripheral is ready for a data transfer. Basic mode should not be used in any situation
where the request is momentary, even though the entire transfer should be completed. For example, a
software-initiated transfer creates a momentary request, and in basic mode, only the number of transfers
specified by the ARBSIZE field in the DMA Channel Control Word register are transferred on a software
request, even if there are more data to transfer. When all of the items have been transferred using basic
mode, the µDMA controller sets the channel to stop mode.
4.2.5.3 Auto Mode
Auto mode is similar to basic mode, except that once a transfer request is received, the transfer runs to
completion, even if the µDMA request is removed. This mode is suitable for software-triggered transfers.
Generally, auto mode is not used with a peripheral. When all the items have been transferred using auto
mode, the µDMA controller sets the mode for that channel to stop.
4.2.5.4 Ping-Pong Mode
Ping-pong mode supports a continuous data flow to or from a peripheral. To use ping-pong mode, both
the primary and alternate data structures must be implemented (see Figure 4-1). Both structures are set
up by the processor for data transfer between memory and a peripheral. The transfer is started using the
primary control structure. When the transfer using the primary control structure is complete, the µDMA
controller reads the alternate control structure for that channel to continue the transfer. Each time this
happens, an interrupt is generated, and the processor can reload the control structure for the just-
completed transfer. Data flow can continue indefinitely this way, using the primary and alternate control
structures to switch between buffers as the data flows to or from the peripheral.

Table of Contents