Halt And Error Conditions; Dma Segment Descriptors - Freescale Semiconductor MPC8313E Family Reference Manual

Powerquicc ii pro integrated processor
Hide thumbs Also See for MPC8313E:
Table of Contents

Advertisement

DMA/Messaging Unit
12.4.3.2

Halt and Error Conditions

DMA transfers are halted either by clearing the CS (channel start) bit in the DMA mode register
(DMAMRn) or when encountering an error condition. In either case, the application software can do one
of the following:
Continue the DMA transfer
Reconfigure the DMA for a new transfer
Leave the channel in the halted state
When a DMA channel is halted, its programming model is completely accessible. If the DMA is halted
due to an error condition, the TE (transfer error) bit in the DMA status register (DMASRn) must be cleared
before the transfer can be resumed or a new transfer initiated. Note that the TE bit is not cleared
automatically by hardware.
12.4.4

DMA Segment Descriptors

DMA segment descriptors contain the source and destination addresses of the data segment, the segment
byte count, and a link to the next descriptor. Segment descriptors are built on cache-line (32-byte)
boundaries in either CSB or PCI memory and are linked together into chains using the
next-descriptor-address field.
Descriptor Field
Source address
Destination address
Next descriptor address
Byte count
Application software initializes the current DMA current descriptor address register (DMACDARn) to
point to the first descriptor in the chain. For each descriptor in the chain, the DMA controller starts a new
DMA transfer with the control parameters specified by the descriptor. The DMA controller traverses the
descriptor chain until reaching the last descriptor (with its EOTD bit set).
MPC8313E PowerQUICC II Pro Integrated Processor Family Reference Manual, Rev. 3
12-18
Table 12-17. DMA Segment Descriptor Fields
Contains the source address of the DMA transfer. After the DMA controller reads the descriptor from
memory, this field will be loaded into the DMA source address register (DMASAR n ).
Contains the destination address of the DMA transfer. After the DMA controller reads the descriptor
from memory, this field will be loaded into the DMA destination address register (DMADAR n ).
Points to the next descriptor in memory. After the DMA controller reads the descriptor from memory,
this field will be loaded into the DMA next descriptor address register (DMANDAR n ).
Contains the number of bytes to transfer. After the DMA controller reads the descriptor from
memory, this field will be loaded into the DMA byte count register (DMABCR n ).
Description
Freescale Semiconductor

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpc8313

Table of Contents