SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 940

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
940
940
SAM3X/A
SAM3X/A
7. Poll CBTC[x] bit in the DMAC_EBCISR Register.
8. If a new list of buffers shall be transferred, repeat step 6. Check and handle HSMCI
9. Poll FIFOEMPTY field in the HSMCI_SR.
a. Read the channel Register to choose an available (disabled) channel.
b. Clear any pending interrupts on the channel from the previous DMAC transfer by
c. Program a List of descriptors.
d. The LLI(n).DMAC_SADDRx memory location for channel x must be set to the loca-
e. The LLI(n).DMAC_DADDRx register for channel x must be set with the starting
f.
g. Program LLI(n).DMAC_CTRLBx register for channel x with the following field’s
h. Program LLI(n).DMAC_CFGx register for channel x with the following field’s values:
i.
j.
k. Program DMAC_DSCRx for channel register x with the address of the first descrip-
l.
errors.
reading the DMAC_EBCISR register.
tion of the source data. When the first data location is not word aligned, the two
LSB bits define the temporary value called dma_offset. The two LSB bits of
LLI(n).DMAC_SADDRx must be set to 0.
address of the HSMCI_FIFO address.
Program LLI(n).DMAC_CTRLAx register of channel x with the following field’s
values:
–DST_WIDTH is set to WORD.
–SRC_WIDTH is set to WORD.
–DCSIZE must be set according to the value of HSMCI_DMA, CHKSIZE field.
–BTSIZE is programmed with CEILING((block_length + dma_offset)/4).
values:
–DST_INCR is set to INCR.
–SRC_INCR is set to INCR.
–DST_DSCR is set to 0 (fetch operation is enabled for the destination).
–SRC_DSCR is set to 1 (source address is contiguous).
–FC field is programmed with memory to peripheral flow control mode.
–Both DST_DSCR and SRC_DSCR are set to 1 (descriptor fetch is disabled).
–DIF and SIF are set with their respective layer ID. If SIF is different from DIF, DMA
–FIFOCFG defines the watermark of the DMA channel FIFO.
–DST_H2SEL is set to true to enable hardware handshaking on the destination.
–SRC_REP is set to 0. (contiguous memory access at block boundary)
–DST_PER is programmed with the hardware handshaking ID of the targeted
If LLI(n) is the last descriptor, then LLI(n).DSCR points to 0 else LLI(n) points to the
start address of LLI(n+1).
the LLI fetch operation.
tor LLI(0).
for request.
Program DMAC_CTRLBx for channel register x with 0. Its content is updated with
Enable Channel x writing one to DMAC_CHER[x]. The DMA is ready and waiting
Controller is able to prefetch data and write HSMCI simultaneously.
HSMCI Host Controller.
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12

Related parts for SAM3X8E