Initialization/Application Information; Enabling And Configuring Sources - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

In this option, the DMA is configured to transfer the data using both minor and major
loops, and the DMA channel MUX does the channel reactivation. For this option, the
DMA channel should be enabled and pointing to an "always enabled" source. Note
that the reactivation of the channel can be continuous (DMA triggering is disabled)
or can use the DMA triggering capability. In this manner, it is possible to execute
periodic transfers of packets of data from one source to another, without processor
intervention.

22.6 Initialization/application information

This section provides instructions for initializing the DMA channel MUX.
22.6.1 Reset
The reset state of each individual bit is shown in
summary, after reset, all channels are disabled and must be explicitly enabled before use.

22.6.2 Enabling and configuring sources

To enable a source with periodic triggering:
1. Determine with which DMA channel the source will be associated. Note that only the
first 2 DMA channels have periodic triggering capability.
2. Clear the CHCFG[ENBL] and CHCFG[TRIG] fields of the DMA channel.
3. Ensure that the DMA channel is properly configured in the DMA. The DMA channel
may be enabled at this point.
4. Configure the corresponding timer.
5. Select the source to be routed to the DMA channel. Write to the corresponding
CHCFG register, ensuring that the CHCFG[ENBL] and CHCFG[TRIG] fields are
set.
The following is an example. See the chip configuration details
for the number of this device's DMA channels that have
triggering capability.
To configure source #5 transmit for use with DMA channel 1, with periodic triggering
capability:
1. Write 0x00 to CHCFG1 (base address + 0x01).
Freescale Semiconductor, Inc.
Chapter 22 Direct memory access multiplexer (DMAMUX)
NOTE
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Memory map/register
definition. In
363

Advertisement

Table of Contents
loading

Table of Contents