SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 941

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
37.8.8
37.8.8.1
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
READ_MULTIPLE_BLOCK
Block Length is a Multiple of 4
10. Send The STOP_TRANSMISSION command writing HSMCI_ARG then
11. Wait for XFRDONE in HSMCI_SR register.
1. Wait until the current command execution has successfully terminated.
2. Program the block length in the card. This value defines the value block_length.
3. Program the block length in the HSMCI configuration register with block_length value.
4. Set RDPROOF bit in HSMCI_MR to avoid overflow.
5. Program HSMCI_DMA register with the following fields:
6. Issue a READ_MULTIPLE_BLOCK command.
7. Program the DMA Controller to use a list of descriptors:
HSMCI_CMDR.
a. Check that CMDRDY and NOTBUSY are asserted in HSMCI_SR.
– ROPT field is set to 0.
– OFFSET field is set to 0.
– CHKSIZE is user defined.
– DMAEN is set to true to enable DMAC hardware handshaking in the HSMCI. This bit
a. Read the channel Register to choose an available (disabled) channel.
b. Clear any pending interrupts on the channel from the previous DMA transfer by
c. Program the channel registers in the Memory with the first descriptor. This descrip-
d. The LLI_W(n).DMAC_SADDRx field in memory must be set with the starting
e. The LLI_W(n).DMAC_DADDRx field in the memory must be word aligned.
f.
g. Program LLI_W(n).DMAC_CTRLBx with the following field’s values:
was previously set to false.
reading the DMAC_EBCISR register.
tor will be word oriented. This descriptor is referred to as LLI_W(n), standing for LLI
word oriented transfer for block n.
address of the HSMCI_FIFO address.
Program LLI_W(n).DMAC_CTRLAx with the following field’s values:
–DST_WIDTH is set to WORD
–SRC_WIDTH is set to WORD
–SCSIZE must be set according to the value of HSMCI_DMA, CHKSIZE field.
–BTSIZE is programmed with block_length/4.
–DST_INCR is set to INCR.
–SRC_INCR is set to INCR.
–FC field is programmed with peripheral to memory flow control mode.
–SRC_DSCR is set to 0 (descriptor fetch is enabled for the SRC).
–DST_DSCR is set to TRUE (descriptor fetch is disabled for the DST).
–DIF and SIF are set with their respective layer ID. If SIF is different from DIF, the
DMA Controller is able to prefetch data and write HSMCI simultaneously.
SAM3X/A
SAM3X/A
941
941

Related parts for SAM3X8E