EasyManua.ls Logo

NXP Semiconductors PXN2020 - 24.3.2.17 Transfer Control Descriptor (TCD)

NXP Semiconductors PXN2020
1376 pages
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...
Enhanced Direct Memory Access Controller (eDMA)
PXN20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor 24-23
A channel’s ability to preempt another channel can be disabled by setting EDMA_CPR[DPA]. When a
channel’s preempt ability is disabled, that channel cannot suspend a lower priority channel’s data transfer;
regardless of the lower priority channel’s ECP setting. This allows for a pool of low priority, large data
moving channels to be defined. These low priority channels can be configured to not preempt each other,
thus preventing a low priority channel from consuming the preempt slot normally available a true, high
priority channel.
24.3.2.17 Transfer Control Descriptor (TCD)
Each channel requires a 32-byte transfer control descriptor for defining the desired data movement
operation. The channel descriptors are stored in the local memory in sequential order: channel 0, channel
1,... channel 31. The definitions of the TCD are presented as eight 32-bit values. Table 24-19 is a field list
of the basic TCD structure.
Offset: EDMA_BASE + 0x0100 + n Access: User read/write
01234567
R
ECP DPA
GRPPRI
CHPRI
W
Reset0000
1
1
The reset value for the channel priority field, CHPRI[0–3], is equal to the corresponding channel number for each priority
register; that is, EDMA_CPRI0[CHPRI] = 0b0000 and EDMA_CPR15[CHPRI] = 0b1111.
Figure 24-17. eDMA Channel n Priority Register (EDMA_CPRn)
Table 24-18. EDMA_CPRn Field Descriptions
Field Description
ECP Enable Channel Preemption.
0 Channel n cannot be suspended by a higher priority channel’s service request.
1 Channel n can be temporarily suspended by the service request of a higher priority channel.
DPA Disable preempt ability.
0 Channel n can suspend a lower priority channel.
1 Channel n cannot suspend any channel, regardless of channel priority.
GRPPRI[0:1] Channel n current group priority. Group priority assigned to this channel group when fixed-priority arbitration
is enabled. These two bits are read-only; writes are ignored. The reset value for the group priority fields is equal
to the corresponding channel number for each priority register; that is, EDMA_CPR31[GRPPRI] = 0b01.
CHPRI[0:3] Channel n Arbitration Priority. Channel priority when fixed-priority arbitration is enabled. The reset value for the
channel priority fields CHPRI[0–3], is equal to the corresponding channel number for each priority register; that
is, EDMA_CPR31[CHPRI] = 0b1111.
Table 24-19. TCDn 32-bit Memory Structure
eDMA Offset TCDn Field
0x1000+(32 x n)+0x0000 Source address (saddr)
0x1000+(32 x n)+0x0004 Transfer attributes Signed source address offset (soff)
0x1000+(32 x n)+0x0008 Inner minor byte count (nbytes)

Table of Contents

Related product manuals