Stopping Dma Transfers; Dma Interrupts; Dma Configuration-Data Structure; Dma Memory Access - Texas Instruments CC253x User Manual

System-on-chip for 2.4ghz
Table of Contents

Advertisement

Stopping DMA Transfers

Thus, the DMA controller expects the DMA configuration data structures for DMA channels 1–4 to lie in a
contiguous area in memory starting at the address held in DMA1CFGH:DMA1CFGL and consisting of 32
bytes.
8.4
Stopping DMA Transfers
Ongoing DMA transfers or armed DMA channels are aborted using the DMAARM register to disarm the
DMA channel.
One or more DMA channels are aborted by writing a 1 to the DMAARM.ABORT register bit, and at the same
time selecting which DMA channels to abort by setting the corresponding DMAARM.DMAARMx bits to 1.
When setting DMAARM.ABORT to 1, the DMAARM.DMAARMx bits for nonaborted channels must be written
as 0.
No DMA interrupt is generated when aborting an ongoing DMA transfer (disarming a DMA channel).
8.5

DMA Interrupts

Each DMA channel can be configured to generate an interrupt to the CPU on completing a DMA transfer.
This is accomplished with the IRQMASK bit in the channel configuration. The corresponding interrupt flag
in the DMAIRQ SFR register is set when the interrupt is generated.
Regardless of the IRQMASK bit in the channel configuration, the corresponding interrupt flag in the
DMAIRQ register is set on DMA channel completion. Thus, software should always check (and clear) this
register when rearming a channel with a changed IRQMASK setting. Failure to do so could generate an
interrupt based on the stored interrupt flag.
If a DMA transfer is aborted prior to its completion, the corresponding bit in the DMAIRQ register is not set,
and an interrupt is not generated.
8.6

DMA Configuration-Data Structure

For each DMA channel, the DMA configuration-data structure consists of eight bytes. The configuration-
data structure is described in
8.7

DMA Memory Access

The DMA data transfer is affected by endian convention. Note that the DMA descriptors follow big-endian
convention while the other registers follow little-endian convention. This must be accounted for in
compilers.
DMA Trigger
Number
Name
0
NONE
1
PREV
2
T1_CH0
3
T1_CH1
4
T1_CH2
5
T2_EVENT1
6
T2_EVENT2
7
T3_CH0
8
T3_CH1
9
T4_CH0
10
T4_CH1
11
ST
RADIO1
98
DMA Controller
Table
8-2.
Table 8-1. DMA Trigger Sources
Functional Unit
DMA
No trigger, setting the DMAREQ.DMAREQx bit starts transfer.
DMA
DMA channel is triggered by completion of previous channel.
Timer 1
Timer 1, compare, channel 0
Timer 1
Timer 1, compare, channel 1
Timer 1
Timer 1, compare, channel 2
Timer 2
Timer 2, event pulse 1
Timer 2
Timer 2, event pulse 2
Timer 3
Timer 3, compare, channel 0
Timer 3
Timer 3, compare, channel 1
Timer 4
Timer 4, compare, channel 0
Timer 4
Timer 4, compare, channel 1
Sleep Timer (not in
Sleep Timer compare
CC2540/41)
Radio (CC2541)
Radio DMA trigger 1 (see
Copyright © 2009–2014, Texas Instruments Incorporated
Description
Section
25.3.2)
SWRU191F – April 2009 – Revised April 2014
Submit Documentation Feedback
www.ti.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents