
Enhanced Direct Memory Access (eDMA)
Freescale Semiconductor
16-37
loop is exhausted, only the major loop channel link fields are used to determine if a channel link should be
made. For example, the initial fields of:
TCD
n
_CITER[E_LINK] = 1
TCD
n
_CITER[LINKCH] = 0xC
TCD
n
_CITER[CITER] value = 0x4
TCD
n
_CSR[MAJOR_E_LINK] = 1
TCD
n
_CSR[MAJOR_LINKCH] = 0x7
executes as:
1. Minor loop done
→
set TCD12_CSR[START] bit
2. Minor loop done
→
set TCD12_CSR[START] bit
3. Minor loop done
→
set TCD12_CSR[START] bit
4. Minor loop done, major loop done
→
set TCD7_CSR[START] bit
When minor loop linking is enabled (TCD
n
_CITER[E_LINK] = 1), the TCD
n
_CITER[CITER] field uses
a nine bit vector to form the current iteration count. When minor loop linking is disabled
(TCD
n
_CITER[E_LINK] = 0), the TCD
n
_CITER[CITER] field uses a 15-bit vector to form the current
iteration count. The bits associated with the TCD
n
_CITER[LINKCH] field are concatenated onto the
CITER value to increase the range of the CITER.
NOTE
The TCD
n
_CITER[E_LINK] bit and the TCD
n
_BITER[E_LINK] bit must
equal or a configuration error is reported. The CITER and BITER vector
widths must be equal to calculate the major loop, half-way done interrupt
point.
summarizes how a DMA channel can link to another DMA channel, i.e, use another channel’s
TCD, at the end of a loop.
16.8.7
Dynamic Programming
This section provides recommended methods to change the programming model during channel execution.
16.8.7.1
Dynamic Channel Linking and Dynamic Scatter/Gather
Dynamic channel linking and dynamic scatter/gather is the process of changing the
TCD
n
_CSR[MAJOR_E_LINK] or TCD
n
_CSR[E_SG] bits during channel execution. These bits are read
Table 16-35. Channel Linking Parameters
Desired Link
Behavior
TCD Control Field Name
Description
Link at end of
Minor Loop
CITER[E_LINK]
Enable channel-to-channel linking on minor loop completion (current iteration)
CITER[LINKCH]
Link channel number when linking at end of minor loop (current iteration)
Link at end of
Major Loop
CSR[MAJOR_E_LINK]
Enable channel-to-channel linking on major loop completion
CSR[MAJOR_LINKCH]
Link channel number when linking at end of major loop
MCF5329 Reference Manual, Rev 3
Содержание MCF5329
Страница 106: ...ColdFire Core 3 32 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 126: ...Enhanced Multiply Accumulate Unit EMAC 4 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 148: ...Cache 5 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 154: ...Static RAM SRAM 6 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 184: ...Power Management 8 18 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 204: ...Reset Controller Module 10 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 220: ...System Control Module SCM 11 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 228: ...Crossbar Switch XBS 12 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 268: ...General Purpose I O Module 13 40 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 392: ...SDRAM Controller SDRAMC 18 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 436: ...Fast Ethernet Controller FEC 19 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 564: ...Liquid Crystal Display Controller LCDC 22 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 594: ...FlexCAN 23 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 678: ...Pulse Width Modulation PWM Module 26 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 684: ...Watchdog Timer Module 27 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 692: ...Programmable Interrupt Timers PIT0 PIT3 28 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 704: ...DMA Timers DTIM0 DTIM3 29 12 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 720: ...Queued Serial Peripheral Interface QSPI 30 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 754: ...UART Modules 31 34 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 770: ...I2 C Interface 32 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 790: ...Message Digest Hardware Accelerator MDHA 33 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 866: ...Debug Module 36 50 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 902: ...Register Memory Map Quick Reference A 26 Freescale Semiconductor MCF5329 Reference Manual Rev 3...