2 channel registers, Section 32–6.2.1, Section 32–6.2.2 – NXP Semiconductors LPC24XX UM10237 User Manual

Page 727

Advertising
background image

UM10237_4

© NXP B.V. 2009. All rights reserved.

User manual

Rev. 04 — 26 August 2009

727 of 792

NXP Semiconductors

UM10237

Chapter 32: LPC24XX General Purpose DMA (GPDMA) controller

6.2 Channel registers

The channel registers are used to program the two DMA channels. These registers
consist of:

Two DMACCxSrcAddr Registers

Two DMACCxDestAddr Registers

Two DMACCxLLI Registers

Two DMACCxControl Registers

Two DMACCxConfiguration Registers

When performing scatter/gather DMA the first four registers are automatically updated.

6.2.1 Channel Source Address Registers (DMACC0SrcAddr - 0xFFE0 4100 and

DMACC1SrcAddr - 0xFFE0 4120)

The two read/write DMACCxSrcAddr Registers contain the current source address
(byte-aligned) of the data to be transferred. Each register is programmed directly by
software before the appropriate channel is enabled. When the DMA channel is enabled
this register is updated:

As the source address is incremented.

By following the linked list when a complete packet of data has been transferred.

Reading the register when the channel is active does not provide useful information. This
is because by the time software has processed the value read, the channel might have
progressed. It is intended to be read only when the channel has stopped, in which case it
shows the source address of the last item read.

Note: The source and destination addresses must be aligned to the source and
destination widths.

Table 32–667

shows the bit assignments of the DMACCxSrcAddr Registers.

6.2.2 Channel Destination Address Registers (DMACC0DestAddr - 0xFFE0 4104

and DMACC1DestAddr - 0xFFE0 4124)

The two read/write DMACCxDestAddr Registers contain the current destination address
(byte-aligned) of the data to be transferred. Each register is programmed directly by
software before the channel is enabled. When the DMA channel is enabled the register is
updated as the destination address is incremented and by following the linked list when a
complete packet of data has been transferred. Reading the register when the channel is
active does not provide useful information. This is because by the time that software has
processed the value read, the channel might have progressed. It is intended to be read
only when a channel has stopped, in which case it shows the destination address of the
last item read.

Table 32–668

shows the bit assignments of the DMACCxDestAddr

Register.

Table 667. Channel Source Address registers (DMACC0SrcAddr - address 0xFFE0 4100 and

DMACC1SrcAddr - address 0xFFE0 4120) bit description

Bit

Symbol

Description

Reset Value

31:0

SrcAddr

DMA source address.

0x0000 0000

Advertising